2019-07-18 23:42:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
DOTWRYN="$HOME/.wryn"
|
|
|
|
RC_DIR="$DOTWRYN/bash"
|
2019-04-16 15:54:31 +00:00
|
|
|
|
2019-07-18 23:42:11 +00:00
|
|
|
# source .wryn/bash files
|
|
|
|
for file in $(find $RC_DIR -maxdepth 1 -type f); do source $file; done;
|
|
|
|
|
|
|
|
# osx
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
|
|
for file in $(find $RC_DIR/osx -type f); do source $file; done;
|
|
|
|
fi
|
|
|
|
|
|
|
|
# linux
|
|
|
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
|
|
|
for file in $(find $RC_DIR/linux -type f); do source $file; done;
|
|
|
|
fi
|
2019-04-04 22:03:35 +00:00
|
|
|
|
2019-04-16 15:42:44 +00:00
|
|
|
# --- Welcome message -----------------------------------------
|
2019-04-17 02:29:03 +00:00
|
|
|
exec figlet "Welcome, beautiful" | lolcat; echo; cowsay -p "damn u sexy" | lolcat;
|
2019-04-04 22:03:35 +00:00
|
|
|
|
2019-04-16 15:42:44 +00:00
|
|
|
# --- Utility Alias -------------------------------------------
|
2019-04-04 22:03:35 +00:00
|
|
|
alias restart='clear; source ~/.bashrc; echo'
|
2019-06-07 22:13:32 +00:00
|
|
|
|
|
|
|
# --- !@#$ Aliases --------------------------------------------
|
2019-06-26 17:28:47 +00:00
|
|
|
alias clera='clear';
|
2019-07-18 23:42:11 +00:00
|
|
|
alias sl='sl -alF | lolcat';
|
2019-06-26 17:28:47 +00:00
|
|
|
|
|
|
|
# --- Note-taking facilitated ---------------------------------
|
|
|
|
NOTE_PATH='/Users/w0ryn/Documents/notes';
|
|
|
|
NOTE_EXTENSION='.txt';
|
|
|
|
alias mynotes='cd $NOTE_PATH';
|
|
|
|
function note() { vim $NOTE_PATH/$1$NOTE_EXTENSION; }
|
2019-07-18 23:42:11 +00:00
|
|
|
function notes() { NOTE="$NOTE_PATH/$1$NOTE_EXTENSION"; [ $1 ] && [ -f $NOTE ] && vim $NOTE || vim $NOTE_PATH; }
|
|
|
|
|
|
|
|
# --- ViM as default editor -----------------------------------
|
|
|
|
export EDITOR='vim'
|
|
|
|
export VISUAL='vim'
|