feat: fish config: migrate alias to functions & alter themes loading

This commit is contained in:
grassblock 2025-02-10 16:56:35 +08:00
parent 50509d4b92
commit 4dc09b3d11
5 changed files with 44 additions and 17 deletions

View file

@ -0,0 +1,4 @@
function hg --wraps='kitten hyperlinked-grep' --description 'alias hg=kitten hyperlinked-grep'
kitten hyperlinked-grep $argv
end

View file

@ -0,0 +1,3 @@
function nya --wraps='echo nya && meow' --description 'alias nya echo nya && meow'
echo nya && meow
end

View 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

View 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