Groovy Pisces (scrot, raw, dl)
HMSImpractical Aug 19, 2020 (misc/misc)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | #!/usr/bin/fish
alias vim 'nvim'
alias pkginstall 'sudo pacman -S'
alias pkgrm 'sudo pacman -Rns'
alias pkgupdate 'sudo pacman -Syyu'
alias pkgsearch 'pacman -Ss'
alias pkginfo 'pacman -Sii'
alias pkgfiles 'pacman -Ql'
alias get 'git clone'
alias getb 'git clone --bare'
alias config '/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
alias psmem 'ps auxf | sort -nr -k 3 | head -n 10'
function fish_greeting
echo -n
end
function fish_prompt
set_color green --bold
printf "["
set_color blue --bold
printf "%s" "$USER"
set_color green --bold
printf "]"
set_color magenta
printf "@"
set_color red
printf "["
set_color blue --bold
printf "%s" "$hostname"
set_color red
printf "]"
set_color yellow
echo -n (prompt_pwd)
set_color normal
printf ">"
end
function ex
if test -f $argv
switch $argv
case *.tar.bz2
tar xjf $argv
case *.tar.gz
tar xzf $argv
case *.bz2
bunzip2 $argv
case *.rar
unrar x $argv
case *.gz
gunzip $argv
case *.tar
tar xf $argv
case *.tbz2
tar xjf $argv
case *.tgz
tar xzf $argv
case *.zip
unzip $argv
case *.Z
uncompress $argv
case *.7z
7z x $argv
case *
echo "'$argv' cannot be extracted via ex()"
end
else
echo "'$arg' is not a valid file"
end
end
function mdview
if test -f $argv
pandoc -f markdown -t pdf $argv | zathura -
else
echo "$argv file not found."
exit 0
end
end
|
x
Notes
My fish shell config and aliases.