config.fish.tmpl (1146B)
1 if status is-interactive 2 # path 3 {{ if eq .chezmoi.os "darwin" -}} 4 fish_add_path /usr/local/opt/openssl@1.1/bin 5 {{ end -}} 6 fish_add_path ~/.cargo/bin 7 fish_add_path ~/go/bin 8 fish_add_path ~/.local/bin 9 fish_add_path ~/.nimble/bin 10 # variables 11 set -x BW_SESSION {{ .shell.bw }} 12 set -x EDITOR nvim 13 set -x XDG_CONFIG_HOME {{ .chezmoi.homeDir }}/.config 14 set -g fish_greeting 15 {{ if eq .chezmoi.os "darwin" -}} 16 set -x OBJC_DISABLE_INITIALIZE_FORK_SAFETY YES 17 {{ end -}} 18 # aliases 19 alias vi="nvim" 20 alias vim="nvim" 21 alias i2p="i2prouter" 22 alias ghidra="ghidraRun" 23 alias m2h="mosh -p 60000 home" 24 alias rsync="rsync --progress" 25 alias l="exa -la --group-directories-first" 26 alias lv="exa -l --group-directories-first" 27 alias wordle="rg '^[a-z]{5}\$' /usr/share/dict/words" 28 {{ if eq .chezmoi.os "darwin" -}} 29 alias fix-damaged="xattr -cr" 30 alias cordless="cordless -config-dir ~/.config/cordless" 31 alias godot="/Applications/Godot.app/Contents/MacOS/Godot" 32 {{ end -}} 33 # evals 34 starship init fish | source 35 zoxide init fish | source 36 end