at main 2.4 kB view raw
1if status is-interactive 2 # Commands to run in interactive sessions can go here 3 starship init fish | source 4 zoxide init fish | source 5 6 # Aliases 7 alias l="ls" 8 alias ls="exa" 9 alias lt="exa -T" 10 alias lT="exa -Tlh --no-user --no-time" 11 alias ll="exa -lh --no-user" 12 alias la="exa -lha --git --no-user" 13 # alias la="ls -la" 14 # alias ll="ls -l" 15 alias nv="foreground_nvim" 16 alias gs="git status" 17 alias gb="git checkout" 18 alias gr="gh repo clone" 19 alias glz="lazygit" 20 alias rvim="NVIM_APPNAME=nvim_rocks nvim" 21 alias nn="NVIM_APPNAME=nativevim nvim" 22 23 # Exported Variables 24 set -gx PATH ~/.local/bin $PATH 25 26 if not set -q XDG_CONFIG_HOME 27 set -gx XDG_CONFIG_HOME "$HOME/.config" 28 end 29 30 set -gx EDITOR nvim 31 32 # set $TERM as wezterm to support undercurl in neovim (see wezterm#2505) 33 if test "$TERM_PROGRAM" = WezTerm 34 set -gx TERM wezterm 35 end 36 37 ## Go 38 set -gx GOROOT "$(brew --prefix golang)/libexec" 39 set -gx GOPATH $HOME/go 40 set -gx PATH $PATH $GOROOT/bin $GOPATH/bin 41 42 ## Flutter 43 set -gx PATH $PATH /opt/homebrew/Caskroom/flutter/2.10.4/flutter/bin 44 45 ## Rust 46 set -gx PATH $PATH $HOME/.cargo/bin 47 48 ## FZF 49 set -gx FZF_DEFAULT_OPTS "--bind='ctrl-u:preview-half-page-up' \ 50--bind='ctrl-d:preview-half-page-down'" 51 52 # brew shell completion (see: https://docs.brew.sh/Shell-Completion) 53 if test -d (brew --prefix)"/share/fish/completions" 54 set -gx fish_complete_path $fish_complete_path (brew --prefix)/share/fish/completions 55 end 56 if test -d (brew --prefix)"/share/fish/vendor_completions.d" 57 set -gx fish_complete_path $fish_complete_path (brew --prefix)/share/fish/vendor_completions.d 58 end 59end 60 61# ghcup-env 62set -q GHCUP_INSTALL_BASE_PREFIX[1]; or set GHCUP_INSTALL_BASE_PREFIX $HOME 63set -gx PATH $HOME/.cabal/bin $PATH $HOME/.ghcup/bin 64 65# pnpm 66set -gx PNPM_HOME "$HOME/Library/pnpm" 67if not string match -q -- $PNPM_HOME $PATH 68 set -gx PATH "$PNPM_HOME" $PATH 69end 70# pnpm end 71 72# bob-nvim 73set -gx PATH $HOME/.local/share/bob/nvim-bin $PATH 74 75set -gx BUN_INSTALL $HOME/.bun 76set -gx PATH $BUN_INSTALL/bin $PATH 77 78# luarocks 79## set LUA_PATH and LUA_CPATH 80command -v luarocks &> /dev/null && eval $(luarocks path --no-bin) 81## set PATH 82set -gx PATH $HOME/.luarocks/bin $PATH 83 84# fzf 85fzf --fish | source 86# fzf end 87 88set -gx PATH $HOME/.local/share/bob/nvim-bin $PATH