dotwryn/bashrc

36 lines
1.1 KiB
Bash
Raw Normal View History

2019-04-16 15:54:31 +00:00
RC_DIR="$HOME/.wryn"
2019-04-16 15:42:44 +00:00
# terminal colors
2019-04-16 15:54:31 +00:00
source $RC_DIR/bashcolors
# scripts for fun (see file for dependencies)
source $RC_DIR/fun
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-04-16 15:42:44 +00:00
alias datereadable='date +"%A %B %d, %Y"'
2019-06-07 22:13:32 +00:00
# --- !@#$ Aliases --------------------------------------------
alias clera='clear';
# --- 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; }
function notes() { NOTE="$NOTE_PATH/$1$NOTE_EXTENSION"; [ -f $NOTE ] && vim $NOTE || vim $NOTE_PATH; }
# --- Homework facilitated ------------------------------------
HW_TEMPLATE="$RC_DIR/latex/homework_template.tex"
function hw() {
[ $# -ne 0 ] \
&& NEW_HW="./$1.tex" \
|| echo "Homework filename required" \
&& return;
[ ! -f $NEW_HW ] && cp $HW_TEMPLATE $NEW_HW;
vim $NEW_HW || echo "Something went wrong :c";
}