dotfiles/symlinks/config/fish/config.fish

45 lines
1.1 KiB
Fish

fenv source ~/.profile
set -g fish_prompt_pwd_dir_length 0
set -gx PROJECT_PATHS ~/Projects/*/* ~/Projects/Personal/Mixed\ Technology/Practice
set -gx ASDF_PYTHON_DEFAULT_PACKAGES_FILE ~/.config/asdf/.python-default-packages
set -gx FZF_DEFAULT_COMMAND 'rg --files'
if which termux-info &> /dev/null
alias nvim "vim"
alias vi "vim"
alias vimdiff "vim -d"
else
alias vi "nvim"
alias vim "nvim"
alias vimdiff "nvim -d"
end
alias cat "bat"
if which termux-info &> /dev/null
else
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
end
abbr -a batdiff "git diff --name-only --diff-filter=d | xargs bat --diff"
source ~/.config/fish/platform_config/$MACHINE_TYPE.fish
if [ -f /opt/asdf-vm/asdf.sh ]
set -gx ASDF_DIR /opt/asdf-vm
set -gx ASDF_CONFIG_FILE $XDG_CONFIG_HOME/asdf/asdfrc
set -gx ASDF_DATA_DIR $XDG_DATA_HOME/asdf
source $ASDF_DIR/asdf.sh
else
source ~/.asdf/asdf.fish
if [ -f ~/.asdf/plugins/dotnet-core/set-dotnet-home.fish ]
. ~/.asdf/plugins/dotnet-core/set-dotnet-home.fish
end
end
eval (asdf exec direnv hook fish | source)
function direnv
asdf exec direnv "$argv"
end