#My Dotfiles
These are my personal boilerplate templates for GIT and BASH config files with useful aliases, basic (secure) login information and thorough color configuration schemes for common operations.
git st
- shows files status including branch informationgit co
- performs acheckout
commandgit cb
- performs acheckout
command and creates the new branch on the flygit cm
- performs a commit expecting a message:commit -m
git b
- performs abranch
commandgit bs
- lists all branches sorted by commit date (including the last commit ref)git df
- performs a DIFF command with a colorful outputgit l
- retrieves the git log in a colorful formatgit ll
- retrieves the git log in a colorful format emphasizing the timestamp for each commitgit up
- performs apull
commandgit upr
- performs apull
command rebasing files straight awaygit p
- performs apush
command and expects the origin data to be appendedgit abort
- resets all uncomitted changes and files by executingreset --hard HEAD
git undo
- undos last commit withreset HEAD~1
git recommit
- execute this for ammending the commit messagegit rem
- enlists remotes by executingremote -v
git conflicts
- shows list of files that have a merge conflictgit unstage [file]
- removes file from next commitgit pending
- lists all unpushed commits made so fargit here
- shows only changes to files in current directory
- Adds colored output to
git branch
- Adds colored output to
git diff
- Adds colored output to
git status
In addition to the following shortcuts the install script will save a .vimrc
resource file with coloured syntax enabled for VIM.
preview
- Open a preview windowsafari
- Open a Safari windowfirefox
- Open a Firefox windowchrome
- Open a Chrome windowf
- Open a Finder windowtextedit
- Open a Textedit windowskype
- Open a Skype window
home
- Moves prompt to~
..
- Moves prompt up one levelup
- Same as aboveall
- Lists all files, including hidden fileslx
- Lists all files sorted by extensionlk
- Lists all files sorted by size ascendinglt
- Lists all files sorted by date descendinglc
- Lists all files sorted by/show change time,most recent lastlu
- Lists all files sorted by/show access time,most recent last
rm
- Equivalent torm -i
cp
- Equivalent tocp -i
mv
- Equivalent tomv -i
mkdir
- Equivalent tomkdir -p
. Prevents accidentally clobbering filesdsclean
- Get rid of those pesky .DS_Store files recursively from current locationax
- Assigns execution permissions (a+x)
flush
- Flush your dns cacheshowhidden
- Show hidden files in Finder (for Mac OS X Mavericks)hidehidden
- Hide hidden files in Finder (for Mac OS X Mavericks)path
- Beautified display of PATH variableslibpath
- Beautified display of LIBRARY PATH variablesdu
- Yields disk usage in a more readable formatdf
- Yields disk available in a more readable formatwhich
- Describe a commandh
- Console historyj
- Print currently running jobs and their status
If you're on a Mac/ you can leverage the install script included. Please be aware that the install script will require your sudo
password at some point of the installation process. The script will copy the GIT and BASH
dorfiles of your repo to the $HOME directory and will symlink the copied files straight away to make them available immediately, onc executed a source
command.
$ ./install.sh
Remarkable parts fo the GIT config file were borrowed from Jack Lukic's Git-Aliases repo. The GIT exclusion file implements a good cut of the one proposed by Todd Motto in Fireshell. The BASH config file is inspired on different sources but mostly on the one maintained by Marina AKA bt3gl. Last but not least, the install script is mostly inspired by the one provided by Paul Miller.