aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-02-19 15:56:48 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-02-19 16:08:37 +0530
commit1c96ac4ff595cd974d4bae6c07c35c41f9ad4ef4 (patch)
tree39b3066694b020d208dc443c40c9be0b2f2f6fb2 /scripts
parent40cecab4dadbc633a41e988719e9c5471bbd3bf6 (diff)
downloadnnn-1c96ac4ff595cd974d4bae6c07c35c41f9ad4ef4.tar.gz
Prepare for release v2.3
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/user-scripts/copier.sh18
-rw-r--r--scripts/user-scripts/edit.sh12
-rw-r--r--scripts/user-scripts/fzy.sh12
-rw-r--r--scripts/user-scripts/picker.sh26
-rw-r--r--scripts/user-scripts/sxiv.sh8
-rwxr-xr-xscripts/user-scripts/upgrade.sh24
6 files changed, 0 insertions, 100 deletions
diff --git a/scripts/user-scripts/copier.sh b/scripts/user-scripts/copier.sh
deleted file mode 100755
index a99b88b..0000000
--- a/scripts/user-scripts/copier.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env sh
-
-# Description: Copy selection to clipboard
-#
-# Shell: generic
-# Author: Arun Prakash Jana
-
-# Linux
-cat ~/.nnncp | xargs -0 | xsel -bi
-
-# macOS
-# cat ~/.nnncp | xargs -0 | pbcopy
-
-# Termux
-# cat /data/data/com.termux/files/home/.nnncp | xargs -0 | termux-clipboard-set
-
-# Cygwin
-# cat ~/.nnncp | xargs -0 | clip
diff --git a/scripts/user-scripts/edit.sh b/scripts/user-scripts/edit.sh
deleted file mode 100644
index f23d7a8..0000000
--- a/scripts/user-scripts/edit.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env sh
-
-# Description: Fuzzy find a file in directory subtree with fzy and edit in vim
-#
-# Shell: generic
-# Author: Arun Prakash Jana
-
-# bash, zsh
-vim $(find -type f | fzy)
-
-# fish
-# vim (find -type f | fzy)
diff --git a/scripts/user-scripts/fzy.sh b/scripts/user-scripts/fzy.sh
deleted file mode 100644
index ba8cfc9..0000000
--- a/scripts/user-scripts/fzy.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env sh
-
-# Description: Fuzzy find a file in directory subtree with fzy and open using xdg-open
-#
-# Shell: generic
-# Author: Arun Prakash Jana
-
-# bash, zsh
-xdg-open $(find -type f | fzy) >/dev/null 2>&1
-
-# fish
-# xdg-open (find -type f | fzy) >/dev/null 2>&1
diff --git a/scripts/user-scripts/picker.sh b/scripts/user-scripts/picker.sh
deleted file mode 100644
index 46168f1..0000000
--- a/scripts/user-scripts/picker.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env sh
-
-# Description: Pick files and pipe the line-separated list to another utility
-#
-# Shell: generic
-# Author: Arun Prakash Jana
-#
-# Usage:
-# Copy this file in your $PATH, make it executable and preferably name it to picker.
-# Run commands like:
-# ls -l `picker`
-# cd `picker`
-# vimdiff `picker`
-# or, in fish shell:
-# ls -l (picker)
-# cd (picker)
-# vimdiff (picker)
-#
-# NOTE: This use case is limited to picking files, other functionality may not work as expected.
-
-nnn -p /tmp/picked
-
-if [ -f /tmp/picked ]; then
- cat /tmp/picked | tr '\0' '\n'
- rm /tmp/picked
-fi
diff --git a/scripts/user-scripts/sxiv.sh b/scripts/user-scripts/sxiv.sh
deleted file mode 100644
index 985dce7..0000000
--- a/scripts/user-scripts/sxiv.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/usr/bin/env sh
-
-# Description: Open images in current directory in sxiv
-#
-# Shell: generic
-# Author: Arun Prakash Jana
-
-sxiv -q * >/dev/null 2>&1 &
diff --git a/scripts/user-scripts/upgrade.sh b/scripts/user-scripts/upgrade.sh
deleted file mode 100755
index fa044ee..0000000
--- a/scripts/user-scripts/upgrade.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/env bash
-
-# Description: Check and update to latest version of nnn manually on Debian 9 Stretch
-#
-# Shell: bash
-# Author: Arun Prakash Jana
-# NOTE: This script installs a package, should be issued with admin privilege
-
-cur=`nnn -v`
-new=`curl -s "https://github.com/jarun/nnn/releases/latest" | grep -Eo "[0-9]+\.[0-9]+"`
-
-if [ $cur_ver == $new_ver ]; then
- echo 'Already at latest version'
- exit 0
-fi
-
-# get the package
-wget "https://github.com/jarun/nnn/releases/download/v$new/nnn_$new-1_debian9.amd64.deb"
-
-# install it
-dpkg -i nnn_$new-1_debian9.amd64.deb
-
-# remove the file
-rm -rf nnn_$new-1_debian9.amd64.deb