Files
dotfiles/archive/fish/config.fish
2022-09-02 14:20:03 -07:00

44 lines
891 B
Fish

# ============
# Basics, etc…
# ============
# Default editor
set -g -x EDITOR "emacsclient"
set -g -x ALTERNATE_EDITOR "vim"
set -g -x TERMINAL "kitty"
# Setup PATH
fish_add_path --path ~/.dotfiles/bin ~/.local/bin ~/bin
fish_add_path ~/.emacs.d/bin
# Disable Fish greeting banner
set --universal fish_greeting
# Configuration for apps
for app in ~/.config/fish/apps/*.fish
source $app
end
# OS-specific configuration
source ~/.config/fish/os/os.fish
# Machine-local config
if test -e ~/.config/fish/local.fish
source ~/.config/fish/local.fish
end
# Hybrid Vi Mode
set -g fish_key_bindings hybrid_bindings
# Fix prompt for Emacs TRAMP
# https://github.com/oh-my-fish/theme-bobthefish/issues/148
if test "$TERM" = "dumb"
function fish_prompt
echo "\$ "
end
function fish_right_prompt; end
function fish_greeting; end
function fish_title; end
end