Last active
April 27, 2020 22:01
-
-
Save cassidoo/1d070c335c1accb4500d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bash Stuff | |
alias reload='source ~/.bash_profile' | |
alias a='echo "------------Your aliases------------";alias' | |
alias sa='source ~/.bash_profile;echo "Bash aliases sourced."' | |
alias bp='vim ~/.bash_profile' | |
# Install git completion here: brew install git bash-completion | |
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion | |
# Git Stuff | |
# Make sure you do git config --global alias.whatever | |
alias co='checkout' | |
alias st='status' | |
alias yolo='git status && git add -A && git commit -m "I do what I want" && git push origin master' | |
# Dev Stuff | |
alias servepy='python -m SimpleHTTPServer' | |
# Filesystem Stuff | |
alias ll='ls -lhA' | |
alias ..='cd ..' | |
alias ...='cd ../../' | |
alias gh='cd ~/GitHub' | |
alias work='cd ~/Work' | |
alias search='ls -al | grep' | |
# Random Stuff | |
# Install with: brew install fortune cowsay lolcat | |
alias wisdom='fortune | cowsay -f dragon-and-cow | lolcat' | |
## Add line before each terminal command | |
fill="-- " | |
reset_style='\[\033[00m\]' | |
status_style=$reset_style'\[\033[0;90m\]' # gray color; use 0;37m for lighter color | |
prompt_style=$reset_style | |
command_style=$reset_style'\[\033[1;29m\]' # bold black | |
# Prompt variable: | |
PS1="$status_style"'$fill \t\n'"$prompt_style"'${debian_chroot:+($debian_chroot)}\u@\h:\w\$'"$command_style " | |
# Reset color for command output | |
# (this one is invoked every time before a command is executed): | |
trap 'echo -ne "\033[00m"' DEBUG | |
function prompt_command { | |
# create a $fill of all screen width minus the time string and a space: | |
let fillsize=${COLUMNS}-20 | |
fill="" | |
while [ "$fillsize" -gt "0" ] | |
do | |
fill="-${fill}" # fill with underscores to work on | |
let fillsize=${fillsize}-1 | |
done | |
} | |
BASE16_SHELL=$HOME/.config/base16-shell/ | |
[ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/profile_helper.sh)" | |
PROMPT_COMMAND=prompt_command | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment