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/.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* export PATH="$PATH:$HOME/bin:$HOME/.local/bin:$HOME/.local/go/bin"
[[ -s "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env"
export PATH="$PATH:$HOME/bin:$HOME/.local/bin"
{{- if eq .chezmoi.os "linux" }} {{- if eq .chezmoi.os "linux" }}
export PATH="$PATH:$HOME/.local/share/nvim-linux64/bin" export PATH="$PATH:$HOME/.local/share/nvim-linux64/bin"
{{- end }} {{- end }}

View file

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