add some scripts

olexsmir.xyz 4f8c4ae7 72cc1a3b

verified
Changed files
+32 -3
bin
config
fish
functions
+24
bin/ex
··· 1 + #!/usr/bin/env bash 2 + 3 + ex () { 4 + file=$1 5 + [ -z "$file" ] && echo 'ex <compressed>' && return 1 6 + [ ! -f "$file" ] && echo 'Invalid file: `'"$file"'`' && return 1 7 + case "$file" in 8 + *.tar.bz2) tar xjf "$file";; 9 + *.tar.gz) tar xzf "$file";; 10 + *.bz2) bunzip2 "$file";; 11 + *.rar) unrar x "$file";; 12 + *.gz) gunzip "$file";; 13 + *.tar) tar xf "$file";; 14 + *.tbz2) tar xjf "$file";; 15 + *.tgz) tar xzf "$file";; 16 + *.zip) unzip "$file";; 17 + *.Z) uncompress "$file";; 18 + *.7z) 7z x "$file";; 19 + *.xz) unxz "$file";; 20 + *) echo 'Unknown suffix on file: `'"$file"'`'; return 1 ;; 21 + esac 22 + } 23 + 24 + ex "$@"
+2
bin/goclean
··· 1 + #!/usr/bin/env bash 2 + exec go clean -cache -modcache -i -r
+2
bin/kittyreload
··· 1 + #!/usr/bin/env bash 2 + kill -SIGUSR1 "$(pidof kitty | awk '{ print $1 }')"
+4
bin/today
··· 1 + #!/usr/bin/env bash 2 + p=$HOME/Documents/Syncthing/logseq/journals 3 + d=$(date +%Y-%m-%d) 4 + [ -d "$p" ] && exec nvim "$p/$d.md"
-3
config/fish/functions/kitty_reload.fish
··· 1 - function kitty_reload 2 - kill -SIGUSR1 (pidof kitty | awk '{ print $1 }') 3 - end