Finish fish environment setup, ignore fish_variables from git

This commit is contained in:
Evie Litherland-Smith 2023-02-25 09:52:25 +00:00
parent dbd3247ba0
commit 969264c21a
4 changed files with 14 additions and 7 deletions

1
.gitignore vendored
View file

@ -7,3 +7,4 @@ config/lazygit/state.yml
config/tmux/plugins config/tmux/plugins
config/nvim/lazy-lock.json config/nvim/lazy-lock.json
config/git/user_email config/git/user_email
config/fish/fish_variables

View file

@ -1,7 +1,3 @@
if status is-login if status is-interactive
and status is-interactive keychain --eval --quiet --noask -Q id_ed25519 id_rsa | source
# To add a key, set -Ua SSH_KEYS_TO_AUTOLOAD keypath
# To remove a key, set -U --erase SSH_KEYS_TO_AUTOLOAD[index_of_key]
keychain --eval --quiet --noask "$HOME/.ssh/id_ed25519" | source
keychain --eval --quiet --noask "$HOME/.ssh/id_rsa" | source
end end

View file

@ -0,0 +1,6 @@
if status is-interactive
set -l LOCAL_BIN "$HOME/.local/bin"
set -l DOTFILES_BIN "$HOME/.dotfiles/bin"
echo $PATH | grep -i $LOCAL_BIN - > /dev/null 2>&1 || set -gx PATH $PATH $LOCAL_BIN
echo $PATH | grep -i $DOTFILES_BIN - > /dev/null 2>&1 || set -gx PATH $PATH $DOTFILES_BIN
end

View file

@ -1,5 +1,9 @@
if status is-interactive if status is-interactive
# Commands to run in interactive sessions can go here fish_config theme choose CatppuccinMacchiato
alias vim="nvim"
alias vimdiff="nvim -d"
alias nvimdiff="nvim -d"
alias lg="lazygit"
end end
function starship_transient_prompt_func function starship_transient_prompt_func