Created
September 30, 2019 17:07
-
-
Save solrevdev/401ce7c5964497b93b1f226c79ff8fa5 to your computer and use it in GitHub Desktop.
bash_profile from ubuntu
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
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
# custom terminal prompt | |
parse_git_branch() { | |
git branch 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ " | |
# These are the google api keys and oauth credentials for being able to login to and sync data for the Chromium browser | |
GOOGLE_API_KEY= | |
GOOGLE_DEFAULT_CLIENT_ID= | |
GOOGLE_DEFAULT_CLIENT_SECRET= | |
# solrevdev aliases | |
alias ll='ls -alF' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias ggg="git add . && git commit -m" | |
alias gst="git status" | |
# .zshrc git commands last pass | |
alias lp="lpass" | |
# .zshrc pwdgen command to create 12 charachter password to clipboard | |
alias ppp="pwgen 12 -c -n -y -B 1 | tee >(xclip -selection clipboard)" | |
# safe rm - https://github.com/sindresorhus/guides/blob/285270f06e117c7e0a6b6e51eca6e488d9d7c44d/how-not-to-rm-yourself.md#how-not-to-rm-yourself | |
alias rm="trash" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment