Move zsh path modifications to .zprofile
This commit is contained in:
parent
162ec98918
commit
584e90f742
2 changed files with 13 additions and 2 deletions
|
|
@ -0,0 +1,13 @@
|
||||||
|
# source the nix profile if it exists
|
||||||
|
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then
|
||||||
|
. $HOME/.nix-profile/etc/profile.d/nix.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
# set PATH so it includes user's private bin if it exists
|
||||||
|
if [ -d "$HOME/bin" ] ; then
|
||||||
|
PATH="$HOME/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d "$HOME/.local/bin" ] ; then
|
||||||
|
PATH="$HOME/.local/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
export PATH=$HOME/bin:$HOME/.local/bin:$PATH
|
|
||||||
|
|
||||||
export EDITOR='nvim'
|
export EDITOR='nvim'
|
||||||
export VISUAL=$EDITOR
|
export VISUAL=$EDITOR
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue