forked from logan/dotfiles
Added basic aliases to fish
This commit is contained in:
parent
15963136a2
commit
12467f30c8
6 changed files with 24 additions and 0 deletions
4
.config/fish/functions/grep.fish
Normal file
4
.config/fish/functions/grep.fish
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
function grep --description 'alias grep=grep --color=auto'
|
||||||
|
command grep --color=auto $argv
|
||||||
|
|
||||||
|
end
|
4
.config/fish/functions/ls.fish
Normal file
4
.config/fish/functions/ls.fish
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
function ls --description 'alias ls=ls --color=auto'
|
||||||
|
command ls --color=auto $argv
|
||||||
|
|
||||||
|
end
|
4
.config/fish/functions/lsgpu.fish
Normal file
4
.config/fish/functions/lsgpu.fish
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
function lsgpu --wraps='lspci -nnk | grep -i VGA -A2' --description 'alias lsgpu=lspci -nnk | grep -i VGA -A2'
|
||||||
|
lspci -nnk | grep -i VGA -A2 $argv
|
||||||
|
|
||||||
|
end
|
4
.config/fish/functions/memepv.fish
Normal file
4
.config/fish/functions/memepv.fish
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
function memepv --wraps='mpv --vo=tct --profile=sw-fast' --description 'alias memepv=mpv --vo=tct --profile=sw-fast'
|
||||||
|
mpv --vo=tct --profile=sw-fast $argv
|
||||||
|
|
||||||
|
end
|
4
.config/fish/functions/pacman-clean.fish
Normal file
4
.config/fish/functions/pacman-clean.fish
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
function pacman-clean --wraps='pacman -Rsn $(pacman -Qdtq)' --description 'alias pacman-clean=pacman -Rsn $(pacman -Qdtq)'
|
||||||
|
pacman -Rsn $(pacman -Qdtq) $argv
|
||||||
|
|
||||||
|
end
|
4
.config/fish/functions/update-mirrors.fish
Normal file
4
.config/fish/functions/update-mirrors.fish
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
function update-mirrors --wraps='reflector --age 12 --number 10 --protocol https --sort rate --save /etc/pacman.d/mirrorlist' --description 'alias update-mirrors=reflector --age 12 --number 10 --protocol https --sort rate --save /etc/pacman.d/mirrorlist'
|
||||||
|
reflector --age 12 --number 10 --protocol https --sort rate --save /etc/pacman.d/mirrorlist $argv
|
||||||
|
|
||||||
|
end
|
Loading…
Reference in a new issue