aboutsummaryrefslogtreecommitdiffstats
path: root/user-scripts
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-03-24 21:11:43 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-03-24 21:11:43 +0530
commitb6c66a78c01384ea1cc255c5c16db4a436136109 (patch)
tree946603ede73213bc45a498387910cb517b27256c /user-scripts
parent1bd42c40c6778263ff35ece3592bfc2c140fcd7a (diff)
downloadnnn-b6c66a78c01384ea1cc255c5c16db4a436136109.tar.gz
Use POSIX compliant sh scripts if possible
Diffstat (limited to 'user-scripts')
-rwxr-xr-xuser-scripts/copier2
-rwxr-xr-xuser-scripts/edit8
-rwxr-xr-xuser-scripts/fzy8
-rwxr-xr-xuser-scripts/kdeconnect2
-rwxr-xr-xuser-scripts/picker2
-rwxr-xr-xuser-scripts/upgrade2
6 files changed, 8 insertions, 16 deletions
diff --git a/user-scripts/copier b/user-scripts/copier
index a99b88b..2aec820 100755
--- a/user-scripts/copier
+++ b/user-scripts/copier
@@ -2,7 +2,7 @@
# Description: Copy selection to clipboard
#
-# Shell: generic
+# Shell: POSIX compliant
# Author: Arun Prakash Jana
# Linux
diff --git a/user-scripts/edit b/user-scripts/edit
index f23d7a8..d15b34e 100755
--- a/user-scripts/edit
+++ b/user-scripts/edit
@@ -2,11 +2,7 @@
# Description: Fuzzy find a file in directory subtree with fzy and edit in vim
#
-# Shell: generic
+# Shell: POSIX compliant
# Author: Arun Prakash Jana
-# bash, zsh
-vim $(find -type f | fzy)
-
-# fish
-# vim (find -type f | fzy)
+vim `find -type f | fzy`
diff --git a/user-scripts/fzy b/user-scripts/fzy
index ba8cfc9..0e52b28 100755
--- a/user-scripts/fzy
+++ b/user-scripts/fzy
@@ -2,11 +2,7 @@
# Description: Fuzzy find a file in directory subtree with fzy and open using xdg-open
#
-# Shell: generic
+# Shell: POSIX compliant
# 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
+xdg-open `find -type f | fzy` >/dev/null 2>&1
diff --git a/user-scripts/kdeconnect b/user-scripts/kdeconnect
index ac247f4..db28e7a 100755
--- a/user-scripts/kdeconnect
+++ b/user-scripts/kdeconnect
@@ -2,7 +2,7 @@
# Description: Send the selected files to your Android device using kdeconnect-cli. You must have installed and configured kdeconnect both on the Android device and on the PC.
#
-# Shell: Bash
+# Shell: bash
# Author: juacq97
id=$(kdeconnect-cli -a --id-only | awk '{print $1}')
diff --git a/user-scripts/picker b/user-scripts/picker
index cebecb1..a500435 100755
--- a/user-scripts/picker
+++ b/user-scripts/picker
@@ -2,7 +2,7 @@
# Description: Pick files and pipe the newline-separated list to another utility
#
-# Shell: generic
+# Shell: POSIX compliant
# Author: Arun Prakash Jana
#
# Usage:
diff --git a/user-scripts/upgrade b/user-scripts/upgrade
index fa044ee..858a6a0 100755
--- a/user-scripts/upgrade
+++ b/user-scripts/upgrade
@@ -18,7 +18,7 @@ fi
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
+sudo dpkg -i nnn_$new-1_debian9.amd64.deb
# remove the file
rm -rf nnn_$new-1_debian9.amd64.deb