2021-01-07 08:09:41 +00:00
|
|
|
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'
|
|
|
|
|
2021-10-15 05:46:36 +00:00
|
|
|
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
|
2021-01-07 08:09:41 +00:00
|
|
|
|
|
|
|
alias cat "bat"
|
2021-10-15 05:46:36 +00:00
|
|
|
if which termux-info &> /dev/null
|
|
|
|
else
|
|
|
|
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
2022-07-21 17:08:50 +00:00
|
|
|
export MANROFFOPT="-c"
|
2021-10-15 05:46:36 +00:00
|
|
|
end
|
2021-01-07 08:09:41 +00:00
|
|
|
|
|
|
|
abbr -a batdiff "git diff --name-only --diff-filter=d | xargs bat --diff"
|
2024-08-23 15:08:28 +00:00
|
|
|
abbr -a ggpush "git push origin (__git.current_branch)"
|
|
|
|
abbr -a ggpull "git pull origin (__git.current_branch)"
|
2021-01-07 08:09:41 +00:00
|
|
|
|
|
|
|
source ~/.config/fish/platform_config/$MACHINE_TYPE.fish
|
|
|
|
|
2021-04-09 14:35:37 +00:00
|
|
|
if [ -f /opt/asdf-vm/asdf.sh ]
|
2021-03-12 15:38:02 +00:00
|
|
|
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
|
2021-04-09 14:35:37 +00:00
|
|
|
if [ -f ~/.asdf/plugins/dotnet-core/set-dotnet-home.fish ]
|
|
|
|
. ~/.asdf/plugins/dotnet-core/set-dotnet-home.fish
|
|
|
|
end
|
2021-03-12 15:38:02 +00:00
|
|
|
end
|
2021-01-07 08:09:41 +00:00
|
|
|
|
|
|
|
eval (asdf exec direnv hook fish | source)
|
|
|
|
|
|
|
|
function direnv
|
|
|
|
asdf exec direnv "$argv"
|
|
|
|
end
|
2023-08-19 19:02:09 +00:00
|
|
|
|
|
|
|
function asdfexec
|
|
|
|
begin
|
|
|
|
asdf shell $argv[1] $argv[2]
|
|
|
|
$argv[3..]
|
|
|
|
end
|
|
|
|
end
|