Created
June 19, 2019 15:30
-
-
Save kenbellows/17e49ed86cced5130a5cf3a927dfc454 to your computer and use it in GitHub Desktop.
My base bashrc file
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
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# User specific aliases and functions | |
alias ls="ls --color=auto" | |
alias l=ls | |
alias ll="ls -l" | |
alias la="ls -a" | |
alias lA="ls -A" | |
alias lla="ls -la" | |
alias llA="ls -lA" | |
alias less="less --chop-long-lines" | |
alias rawless="less --raw" | |
alias rl=rawless | |
alias yi="sudo yum install -y" | |
# Common misspellings | |
alias cd..="cd .." | |
alias ehco=echo | |
# git shorthands | |
alias gs='git status' | |
alias gd='git diff' | |
alias gc='git commit' | |
alias gca='gc -a' | |
alias gcm='gc -m' | |
alias gcam='gc -am' | |
alias glog='git log --pretty=format:"%C(yellow)%h %C(cyan)%<(24)%ad %Cgreen%an%C(auto)%d%Creset: %s" --date=local' | |
alias gl='glog -10' | |
alias gco='git checkout' | |
alias gcob='gco -b' | |
alias ga='git add' | |
alias gA='ga -A' | |
alias gcp='git cherry-pick' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment