dotwryn/zsh/rc

35 lines
812 B
Plaintext
Raw Normal View History

2019-12-02 17:16:05 +00:00
#!/bin/zsh
2020-09-17 03:06:44 +00:00
2020-01-08 19:40:53 +00:00
source "$HOME/.wryn/env/env.zsh"
2019-12-02 17:16:05 +00:00
RC_DIR="$DOTWRYN/zsh"
2020-11-04 19:57:36 +00:00
# zsh plugins
2019-12-02 17:16:05 +00:00
for file in $(find $RC_DIR -maxdepth 1 -type f ! -name 'rc'); do source $file; done;
2020-11-04 19:57:36 +00:00
# linux-specific plugins
2019-12-02 17:16:05 +00:00
if [[ "$OSTYPE" == "linux-gnu" ]]; then
for file in $(find $RC_DIR/linux -type f); do source $file; done;
fi
2020-11-04 19:57:36 +00:00
# osx-specific plugins
if [[ "$OSTYPE" == "darwin"* ]]; then
for file in $(find $RC_DIR/osx -type f); do source $file; done;
fi
2019-12-02 17:16:05 +00:00
2020-11-04 19:57:36 +00:00
# --- vi / vim as default editor (vim preferred) -------------------
which vi >/dev/null 2>&1 && {
export EDITOR='vi';
export VISUAL='vi';
}
2019-12-02 17:16:05 +00:00
2020-11-04 19:57:36 +00:00
which vim >/dev/null 2>&1 && {
export EDITOR='vim';
export VISUAL='vim';
}
2019-12-02 17:16:05 +00:00
2020-11-04 19:57:36 +00:00
# --- welcome message ----------------------------------------------
exec figlet "Welcome, beautiful" | lolcat; echo; cowsay -p "damn u sexy" | lolcat;