feat: fish: add asdf && alias

This commit is contained in:
grassblock 2024-12-09 22:17:57 +08:00
parent 8a4282df81
commit 8a9e35322f

View file

@ -16,6 +16,7 @@ starship init fish | source
# greeting
function fish_greeting
echo ""
# custom motd by fastfetch
if [ $TERM = xterm-kitty ]
fastfetch -c $__fish_config_dir/fmotd/motd.jsonc
else
@ -25,6 +26,7 @@ function fish_greeting
#cat $__fish_config_dir/motd
end
# greeting end
# pnpm
set -gx PNPM_HOME "/home/grassblock/.local/share/pnpm"
if not string match -q -- $PNPM_HOME $PATH
@ -32,6 +34,9 @@ if not string match -q -- $PNPM_HOME $PATH
end
# pnpm end
# nvm managed npm
set -gx PATH "/home/grassblock/.local/share/npm/bin" $PATH
# ssh-agent
#set SSH_ENV_FILE "$HOME/.ssh/agent-environment"
#set SSH_TIMEOUT 86400 # 24 hours in seconds
@ -52,7 +57,10 @@ end
# ssh_start_agent
#end
## ssh-agent-end
rvm default
# ssh agent with rbw
set -gx SSH_ASKPASS_REQUIRE prefer
set -gx SSH_ASKPASS "$HOME/.local/bin/bw-askpass"
# Created by `pipx` on 2023-10-13 01:41:55
set PATH $PATH /home/grassblock/.local/bin
@ -64,3 +72,18 @@ set -gx MAMBA_EXE "/usr/bin/micromamba"
set -gx MAMBA_ROOT_PREFIX "/home/grassblock/.local/share/micromamba"
$MAMBA_EXE shell hook --shell fish --root-prefix $MAMBA_ROOT_PREFIX | source
# <<< mamba initialize <<<
# micromamba has outdated dependency,,,,
# asdf
set -gx ASDF_CONFIG_FILE $XDG_CONFIG_HOME/asdf/asdfrc
set -gx ASDF_DATA_DIR $XDG_DATA_HOME/asdf
source /opt/asdf-vm/asdf.fish
# asdf end
# alias
alias wget "wget --hsts-file="$XDG_DATA_HOME/wget-hsts""
alias "yarn" "yarn $1 --use-yarnrc $XDG_CONFIG_HOME/yarn/config"
alias "ssh" "kitten ssh"
alias "nya" "echo nya && meow"
alias bat="bat --theme=\$( test $(darkman get) = 'dark' && echo Nord || echo ansi)"
# alias end