-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zprofile
More file actions
25 lines (21 loc) · 716 Bytes
/
.zprofile
File metadata and controls
25 lines (21 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env zsh
#====================================================================
# ZSHELL Profile (Run per login shell)
#====================================================================
# The magic 'dot-files' var pointing us home
# (this lets us use relative paths allowing for portability)
export _DOT_FILES="$ZDOTDIR"
#----------------------
# mico helper functions
#----------------------
command_exists(){ command -v "$@" > /dev/null 2>&1; }
source_file(){ [ -f "$1" ] && . "$1"; }
load_dot_file(){ source_file "$_DOT_FILES/$1" }
#------------------
# Setup environment
#------------------
load_dot_file "_env"
#----------------------
# Setup $PATH
#----------------------
load_dot_file "_path"