35 lines
812 B
Bash
35 lines
812 B
Bash
#!/bin/zsh
|
|
|
|
source "$HOME/.wryn/env/env.zsh"
|
|
|
|
RC_DIR="$DOTWRYN/zsh"
|
|
|
|
# zsh plugins
|
|
for file in $(find $RC_DIR -maxdepth 1 -type f ! -name 'rc'); do source $file; done;
|
|
|
|
# linux-specific plugins
|
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
|
for file in $(find $RC_DIR/linux -type f); do source $file; done;
|
|
fi
|
|
|
|
# osx-specific plugins
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
for file in $(find $RC_DIR/osx -type f); do source $file; done;
|
|
fi
|
|
|
|
|
|
# --- vi / vim as default editor (vim preferred) -------------------
|
|
which vi >/dev/null 2>&1 && {
|
|
export EDITOR='vi';
|
|
export VISUAL='vi';
|
|
}
|
|
|
|
which vim >/dev/null 2>&1 && {
|
|
export EDITOR='vim';
|
|
export VISUAL='vim';
|
|
}
|
|
|
|
|
|
# --- welcome message ----------------------------------------------
|
|
exec figlet "Welcome, beautiful" | lolcat; echo; cowsay -p "damn u sexy" | lolcat;
|