Last active
October 10, 2020 02:42
-
-
Save frankievalentine/804a8177373dda2a04b702e6a2dfd43c to your computer and use it in GitHub Desktop.
.bash_profile
This file contains hidden or 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 brewup='brew update; brew upgrade; brew prune; brew cleanup; brew doctor' | |
# Set default editor to vscode | |
export EDITOR="code" | |
# Ignore duplicate commands in the history | |
export HISTCONTROL=ignoredups | |
# Increase the maximum number of lines contained in the history file | |
# (default is 500) | |
export HISTFILESIZE=10000 | |
# Increase the maximum number of commands to remember | |
# (default is 500) | |
export HISTSIZE=10000 | |
# Make new shells get the history lines from all previous | |
# shells instead of the default "last window closed" history | |
export PROMPT_COMMAND="history -a; $PROMPT_COMMAND" | |
# Autocorrect typos in path names when using `cd` | |
shopt -s cdspell | |
# tput sgr0; # reset colors | |
# bold=$(tput bold); | |
# underlineStart=$(tput smul); | |
# underlineEnd=$(tput rmul); | |
reset=$(tput sgr0); | |
# black=$(tput setaf 0); | |
# red=$(tput setaf 1); | |
# green=$(tput setaf 2); | |
# yellow=$(tput setaf 3); | |
# blue=$(tput setaf 4); | |
# magenta=$(tput setaf 5); | |
# cyan=$(tput setaf 6); | |
# white=$(tput setaf 7); | |
# # colored bars | |
pmptGray=$(tput setab 8 && tput setaf 7); | |
# pmptGrayToGreen=$(tput setab 2 && tput setaf 8); | |
# pmptGreenToBlue=$(tput setab 4 && tput setaf 2); | |
# pmptGreenTerminate=$(tput sgr0 && tput setaf 2); | |
# pmptBlueTerminate=$(tput sgr0 && tput setaf 4); | |
# Terminal title and prompt | |
PS1="\[\033]0; \W\007\]"; # working directory base name | |
# PROMPT | |
PS1+="\d \@ "; | |
# PS1+="emoji pointer no longer working in Hyper"; | |
PS1+="\[${pmptGray}\]${USER}\[${reset}\] "; | |
PS1+="\w \n"; | |
export PS1; | |
# PS2="\[${yellow}\]→ \[${reset}\]"; | |
# export PS2; | |
export NODE_PATH='/usr/local/lib/node_modules' | |
# Add composer bin directory to PATH | |
export PATH="$PATH:$HOME/.composer/vendor/bin" | |
# Homebrew sbin | |
export PATH="/usr/local/sbin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment