Create $HOME/devel if it doesn't exist

This commit is contained in:
Kevin Cotugno 2021-07-22 05:39:26 -07:00
parent 876030a45e
commit 4e3a849781

7
.zshrc
View File

@ -19,12 +19,11 @@ if [[ -f "$oh_my_zsh/oh-my-zsh.sh" ]]; then
source "$oh_my_zsh/oh-my-zsh.sh" source "$oh_my_zsh/oh-my-zsh.sh"
fi fi
if [[ -d "$HOME/devel" ]]; then if [[ -d "$HOME/workspace" ]]; then
export DEVPATH="$HOME/devel"
elif [[ -d "$HOME/workspace" ]]; then
export DEVPATH="$HOME/workspace" export DEVPATH="$HOME/workspace"
else else
export DEVPATH="$HOME" mkdir -p "$HOME/devel"
export DEVPATH="$HOME/devel"
fi fi
if [[ -z "$USER" ]]; then if [[ -z "$USER" ]]; then