The easiest way to use this is to clone this repo somewhere and then create a
symlink to the included .bash_profile
file from your user directory (~).
Something like:
cd ~
ln -s /location/to/bash_profile/repo/.bash_profile .bash_profile
- Sets your default editor to vim
- Adds git auto completion
- Modifies the prompt to show git related information
- If rbenv is available, will initialize it
- Introduces many aliases (see below for a list)
cd..
- alias forcd ..
cls
- alias forclear
ls
- alias forls -f1 -FGahp
ll
- alias forls -l
reload_profile
- reloads the.bash_profile
filetrash
- moves a file to the trashempty_trash
- empties the trashhitch
- an alias for using hitch.unhitch
- the opposite ofhitch
t
- clears the screen and runsrake spec
incoming
- shows incoming commits from origin for the current branchoutgoing
- shows outgoing commits to origin for the current branchdirty-branches
- shows which branches are already merged into master and can be deletedclean-branches
- deletes the dirty branchespush-branch
- pushes the current branch to origin (git push --set-upstream...
)gc
- alias forgit checkout
gcm
- alias forgit checkout master
gcd
- alias forgit checkout development
gp
- alias forgit pull
gs
- alias forgit status
gr
- undoes the latest local commit and stages the filesgrr
- undoes all local commits and resets the branch toHEAD
. Warning: hard reset.ci
- alias forgit commit -a
gb
- creates a new branch (first argument) and checks it outgd
- deletes a branch (first argument)gl
- lists all the local branches with their remotes and the last commit messagegla
- lists all the branches (local + remote) with their remotes and the last commit messageglr
- lists only remote branches with their last commit message