Finish fish environment setup, ignore fish_variables from git
This commit is contained in:
parent
dbd3247ba0
commit
969264c21a
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,3 +7,4 @@ config/lazygit/state.yml
|
|||
config/tmux/plugins
|
||||
config/nvim/lazy-lock.json
|
||||
config/git/user_email
|
||||
config/fish/fish_variables
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
if status is-login
|
||||
and status is-interactive
|
||||
# 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
|
||||
if status is-interactive
|
||||
keychain --eval --quiet --noask -Q id_ed25519 id_rsa | source
|
||||
end
|
||||
|
|
6
config/fish/conf.d/local_paths.fish
Normal file
6
config/fish/conf.d/local_paths.fish
Normal 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
|
|
@ -1,5 +1,9 @@
|
|||
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
|
||||
|
||||
function starship_transient_prompt_func
|
||||
|
|
Loading…
Reference in a new issue