38 lines
1001 B
Fish
38 lines
1001 B
Fish
fenv source ~/.profile
|
|
|
|
set -g fish_prompt_pwd_dir_length 0
|
|
set -g fish_vcs_branch_name_length 0
|
|
set -gx PROJECT_PATHS ~/Projects/*/* ~/Projects/Personal/Mixed\ Technology/Practice
|
|
set -gx MISE_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'"
|
|
export MANROFFOPT="-c"
|
|
end
|
|
|
|
abbr -a batdiff "git diff --name-only --diff-filter=d | xargs bat --diff"
|
|
abbr -a ggpush "git push origin (__git.current_branch)"
|
|
abbr -a ggpull "git pull origin (__git.current_branch)"
|
|
abbr -a gcm "git checkout (__git.default_branch)"
|
|
|
|
source ~/.config/fish/platform_config/$MACHINE_TYPE.fish
|
|
|
|
if status is-interactive
|
|
mise activate fish | source
|
|
else
|
|
mise activate fish --shims | source
|
|
end
|