cleanup duplicates between bash profile files

This commit is contained in:
Gabriel Augendre 2024-02-19 20:00:28 +00:00
parent 9b57ffd20b
commit d2dc83f0a8
2 changed files with 2 additions and 7 deletions

View file

@ -1,9 +1,7 @@
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
[[ -s "$HOME/.bashrc" ]] && source "$HOME/.bashrc" # Load the default .bashrc
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
[[ -s "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env"
export PATH="$PATH:$HOME/bin:$HOME/.local/bin"
export PATH="$PATH:$HOME/bin:$HOME/.local/bin:$HOME/.local/go/bin"
{{- if eq .chezmoi.os "linux" }}
export PATH="$PATH:$HOME/.local/share/nvim-linux64/bin"
{{- end }}

View file

@ -1,11 +1,8 @@
export PATH=$PATH:$HOME/bin:$HOME/.local/go/bin
export EDITOR=nvim
export LC_ALL=fr_FR.UTF-8
[ command -v mise &> /dev/null ] && eval "$(mise activate bash)"
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
[[ -s "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env"
[ -f ~/.work.bash ] && source ~/.work.bash