[zsh] Move setting up tilde paths to their own init function
This commit is contained in:
parent
44302e10ed
commit
db8e255a8f
3 changed files with 13 additions and 2 deletions
11
zsh/func/init_rc_tilde_paths
Normal file
11
zsh/func/init_rc_tilde_paths
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env zsh
|
||||
# Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
for x in "$HOME/Code" "$HOME/Documents/Code"; do
|
||||
if [[ ! -d "$x" ]]; then
|
||||
continue
|
||||
fi
|
||||
export c="$x"
|
||||
break
|
||||
done
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue