Browse Source

Use POSIX compliant sh scripts if possible

master
Arun Prakash Jana 6 years ago
parent
commit
b6c66a78c0
No known key found for this signature in database GPG Key ID: A75979F35C080412
6 changed files with 8 additions and 16 deletions
  1. +1
    -1
      user-scripts/copier
  2. +2
    -6
      user-scripts/edit
  3. +2
    -6
      user-scripts/fzy
  4. +1
    -1
      user-scripts/kdeconnect
  5. +1
    -1
      user-scripts/picker
  6. +1
    -1
      user-scripts/upgrade

+ 1
- 1
user-scripts/copier View File

@@ -2,7 +2,7 @@


# Description: Copy selection to clipboard # Description: Copy selection to clipboard
# #
# Shell: generic # Shell: POSIX compliant
# Author: Arun Prakash Jana # Author: Arun Prakash Jana


# Linux # Linux


+ 2
- 6
user-scripts/edit View File

@@ -2,11 +2,7 @@


# Description: Fuzzy find a file in directory subtree with fzy and edit in vim # Description: Fuzzy find a file in directory subtree with fzy and edit in vim
# #
# Shell: generic # Shell: POSIX compliant
# Author: Arun Prakash Jana # Author: Arun Prakash Jana


# bash, zsh vim `find -type f | fzy`
vim $(find -type f | fzy)

# fish
# vim (find -type f | fzy)

+ 2
- 6
user-scripts/fzy View File

@@ -2,11 +2,7 @@


# Description: Fuzzy find a file in directory subtree with fzy and open using xdg-open # Description: Fuzzy find a file in directory subtree with fzy and open using xdg-open
# #
# Shell: generic # Shell: POSIX compliant
# Author: Arun Prakash Jana # Author: Arun Prakash Jana


# bash, zsh xdg-open `find -type f | fzy` >/dev/null 2>&1
xdg-open $(find -type f | fzy) >/dev/null 2>&1

# fish
# xdg-open (find -type f | fzy) >/dev/null 2>&1

+ 1
- 1
user-scripts/kdeconnect View File

@@ -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. # 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 # Author: juacq97


id=$(kdeconnect-cli -a --id-only | awk '{print $1}') id=$(kdeconnect-cli -a --id-only | awk '{print $1}')


+ 1
- 1
user-scripts/picker View File

@@ -2,7 +2,7 @@


# Description: Pick files and pipe the newline-separated list to another utility # Description: Pick files and pipe the newline-separated list to another utility
# #
# Shell: generic # Shell: POSIX compliant
# Author: Arun Prakash Jana # Author: Arun Prakash Jana
# #
# Usage: # Usage:


+ 1
- 1
user-scripts/upgrade View File

@@ -18,7 +18,7 @@ fi
wget "https://github.com/jarun/nnn/releases/download/v$new/nnn_$new-1_debian9.amd64.deb" wget "https://github.com/jarun/nnn/releases/download/v$new/nnn_$new-1_debian9.amd64.deb"


# install it # install it
dpkg -i nnn_$new-1_debian9.amd64.deb sudo dpkg -i nnn_$new-1_debian9.amd64.deb


# remove the file # remove the file
rm -rf nnn_$new-1_debian9.amd64.deb rm -rf nnn_$new-1_debian9.amd64.deb

||||||
x
 
000:0
Loading…
Cancel
Save