Created
August 16, 2018 00:23
-
-
Save standage/0b4e68ff2bdd71dbc4a017ae490d2ffe 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
alias list='ls -lhp' | |
alias vsc='open -a /Applications/Visual\ Studio\ Code.app/' | |
alias msu='ssh hpcc.msu.edu' | |
alias cab='ssh cabernet.genomecenter.ucdavis.edu' | |
alias rum='ssh rum.genomecenter.ucdavis.edu' | |
alias gremlin='ssh gremlin2.soic.indiana.edu' | |
export CLICOLOR=1 | |
export HISTSIZE=1000000 | |
export HISTFILESIZE=1000000 | |
export EDITOR=nano | |
vcf2bed() | |
{ | |
local delta=${1:-5} | |
awk -v OFS='\t' "{ print \$1, \$2-$delta, \$2+$delta }" | |
} | |
function exitstatus { | |
# Stolen shamelessly from https://stackoverflow.com/a/3189735/459780 | |
EXITSTATUS="$?" | |
BOLD="\[\033[1m\]" | |
RED="\[\033[0;31m\]" | |
GREEN="\[\e[0;32m\]" | |
BLUE="\[\e[34m\]" | |
GREY="\[\e[90m\]" | |
LIGHTGREY="\[\e[37m\]" | |
PURPLEBACK="\[\e[46m\]" | |
OFF="\[\033[m\]" | |
PROMPT="\n${GREY}${PURPLEBACK}$(date +%Y-%m-%dT%H:%M:%S%z)${OFF} ${BLUE}[\u@lappy:\w]" | |
CONDA="" | |
if [[ ! -z "${CONDA_DEFAULT_ENV}" ]]; then | |
CONDA="($CONDA_DEFAULT_ENV) " | |
fi | |
if [ "${EXITSTATUS}" -eq 0 ]; then | |
PS1="${PROMPT} ${BOLD}${GREEN}[${EXITSTATUS}]\n${LIGHTGREY}${CONDA}${OFF}[${BLUE}\#${OFF}] $ " | |
else | |
PS1="${PROMPT} ${BOLD}${RED}[${EXITSTATUS}]\n${LIGHTGREY}${CONDA}${OFF}[${BLUE}\#${OFF}] $ " | |
fi | |
PS2="${BOLD}>${OFF} " | |
} | |
PROMPT_COMMAND=exitstatus | |
# added by Anaconda3 5.0.1 installer | |
export PATH="/Users/standage/anaconda3/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment