Added utilities separation and listed dependencies at the bottom of the primary bashrc
This commit is contained in:
parent
0146f199de
commit
baf3e5593d
8
bash/utility
Normal file
8
bash/utility
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# --- 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"; [ $1 ] && [ -f $NOTE ] && vim $NOTE || vim $NOTE_PATH; }
|
21
bashrc
21
bashrc
@ -15,23 +15,24 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||
for file in $(find $RC_DIR/linux -type f); do source $file; done;
|
||||
fi
|
||||
|
||||
# --- ViM as default editor -----------------------------------
|
||||
export EDITOR='vim'
|
||||
export VISUAL='vim'
|
||||
|
||||
# --- Welcome message -----------------------------------------
|
||||
exec figlet "Welcome, beautiful" | lolcat; echo; cowsay -p "damn u sexy" | lolcat;
|
||||
|
||||
# --- Utility Alias -------------------------------------------
|
||||
alias restart='clear; source ~/.bashrc; echo'
|
||||
|
||||
# --- !@#$ Aliases --------------------------------------------
|
||||
alias clera='clear';
|
||||
alias sl='sl -alF | lolcat';
|
||||
|
||||
# --- 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"; [ $1 ] && [ -f $NOTE ] && vim $NOTE || vim $NOTE_PATH; }
|
||||
|
||||
# --- ViM as default editor -----------------------------------
|
||||
export EDITOR='vim'
|
||||
export VISUAL='vim'
|
||||
# --- BASH RC DEPENDENCIES ------------------------------------
|
||||
# sl
|
||||
# lolcat
|
||||
# figlet
|
||||
# fortune
|
||||
# vim
|
||||
# cowsay
|
||||
|
Loading…
Reference in New Issue
Block a user