fish: config: Reformat config

This commit is contained in:
timoxa0 2024-11-20 12:09:08 +05:00
parent 4a8d9b09a2
commit 0031fb402a

View file

@ -11,20 +11,20 @@ function filesize
end end
function _fetch function _fetch
# if which pfetch > /dev/null 2>&1 && [ "$VSCODE_INJECTION" != "1" ] # if which pfetch > /dev/null 2>&1 && [ "$VSCODE_INJECTION" != "1" ]
# export PF_INFO="ascii title os host kernel uptime memory de" # export PF_INFO="ascii title os host kernel uptime memory de"
# #export PF_ASCII="arch" # #export PF_ASCII="arch"
# pfetch # pfetch
# end # end
if which ufetch > /dev/null 2>&1 && [ "$VSCODE_INJECTION" != "1" ] if which ufetch > /dev/null 2>&1 && [ "$VSCODE_INJECTION" != "1" ]
ufetch ufetch
end end
end end
function arm64cc-env function arm64cc-env
export ARCH=arm64 export ARCH=arm64
export hardeningDisable=all export hardeningDisable=all
export CROSS_COMPILE=aarch64-linux-gnu- export CROSS_COMPILE=aarch64-linux-gnu-
end end
if which pyenv > /dev/null 2>&1 if which pyenv > /dev/null 2>&1
@ -37,51 +37,52 @@ if [ "$TERM" = "foot" ] || [ "$TERM" = "xterm-kitty" ]
end end
if status is-interactive if status is-interactive
bind \cl 'clear; _fetch; commandline -f repaint' bind \cl 'clear; _fetch; commandline -f repaint'
bind \cb btop bind \cb btop
bind \cs 'source ~/.config/fish/config.fish' bind \cs 'source ~/.config/fish/config.fish'
if which eza > /dev/null 2>&1
alias ls="eza --icons=auto"
else if which exa > /dev/null 2>&1
alias ls="exa --icons=auto"
end
if which eza > /dev/null 2>&1 if which bat > /dev/null 2>&1
alias ls="eza --icons=auto" alias cat="bat"
else if which exa > /dev/null 2>&1 else if which batcat > /dev/null 2>&1
alias ls="exa --icons=auto" alias cat="batcat"
end end
if which bat > /dev/null 2>&1 if which python > /dev/null 2>&1
alias cat="bat" alias py="python"
else if which batcat > /dev/null 2>&1 end
alias cat="batcat"
end
if which python > /dev/null 2>&1 if which distrobox-enter > /dev/null 2>&1
alias py="python" alias denter=distrobox-enter
end end
if which distrobox-enter > /dev/null 2>&1 if which nvim > /dev/null 2>&1
alias denter=distrobox-enter alias v="nvim"
end alias edit="nvim"
alias e="nvim"
if which nvim > /dev/null 2>&1 alias V="sudoedit"
alias v="nvim" export EDITOR=nvim
alias edit="nvim" end
alias e="nvim"
alias V="sudoedit" alias cdt="cd (mktemp -d)"
export EDITOR=nvim alias ":q"=exit
end
if which zoxide > /dev/null 2>&1
alias cdt="cd (mktemp -d)" zoxide init --cmd cd fish | source
alias ":q"=exit end
if which zoxide > /dev/null 2>&1 if [ "$reload" = "" ]
zoxide init --cmd cd fish | source _fetch
end end
if [ "$reload" = "" ] export VIRTUAL_ENV_DISABLE_PROMPT=0
_fetch set reload "done"
end return 0
export VIRTUAL_ENV_DISABLE_PROMPT=0
set reload "done"
end end
fish_add_path /home/timoxa0/.spicetify fish_add_path /home/timoxa0/.spicetify