feat: fish config: migrate alias to functions & alter themes loading
This commit is contained in:
parent
50509d4b92
commit
4dc09b3d11
5 changed files with 44 additions and 17 deletions
4
home/private_dot_config/private_fish/functions/hg.fish
Normal file
4
home/private_dot_config/private_fish/functions/hg.fish
Normal file
|
@ -0,0 +1,4 @@
|
|||
function hg --wraps='kitten hyperlinked-grep' --description 'alias hg=kitten hyperlinked-grep'
|
||||
kitten hyperlinked-grep $argv
|
||||
|
||||
end
|
3
home/private_dot_config/private_fish/functions/nya.fish
Normal file
3
home/private_dot_config/private_fish/functions/nya.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function nya --wraps='echo nya && meow' --description 'alias nya echo nya && meow'
|
||||
echo nya && meow
|
||||
end
|
9
home/private_dot_config/private_fish/functions/ssh.fish
Normal file
9
home/private_dot_config/private_fish/functions/ssh.fish
Normal file
|
@ -0,0 +1,9 @@
|
|||
function ssh --description 'handy helper to make use of `kitten`'
|
||||
if test $TERM = xterm-kitty
|
||||
kitten ssh $argv
|
||||
or command ssh $argv
|
||||
# in case kitten unable to work in certain conditions like connecting to a openwrt.
|
||||
else
|
||||
command ssh $argv
|
||||
end
|
||||
end
|
4
home/private_dot_config/private_fish/functions/wget.fish
Normal file
4
home/private_dot_config/private_fish/functions/wget.fish
Normal file
|
@ -0,0 +1,4 @@
|
|||
function wget --description 'alias wget wget --hsts-file=/home/grassblock/.local/share/wget-hsts'
|
||||
command wget --hsts-file=/home/grassblock/.local/share/wget-hsts $argv
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue