Skip to content

My personal boilerplate templates for GIT and BASH dotfile with useful aliases and color schemes

License

Notifications You must be signed in to change notification settings

deeleman/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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.

1. Git

1.a. Aliases

  • git st - shows files status including branch information
  • git co - performs a checkout command
  • git cb - performs a checkout command and creates the new branch on the fly
  • git cm - performs a commit expecting a message: commit -m
  • git b - performs a branchcommand
  • git bs - lists all branches sorted by commit date (including the last commit ref)
  • git df - performs a DIFF command with a colorful output
  • git l - retrieves the git log in a colorful format
  • git ll - retrieves the git log in a colorful format emphasizing the timestamp for each commit
  • git up - performs a pullcommand
  • git upr - performs a pullcommand rebasing files straight away
  • git p - performs a pushcommand and expects the origin data to be appended
  • git abort - resets all uncomitted changes and files by executing reset --hard HEAD
  • git undo - undos last commit with reset HEAD~1
  • git recommit - execute this for ammending the commit message
  • git rem - enlists remotes by executing remote -v
  • git conflicts - shows list of files that have a merge conflict
  • git unstage [file] - removes file from next commit
  • git pending - lists all unpushed commits made so far
  • git here - shows only changes to files in current directory

1.b. Colored Output

  • Adds colored output to git branch
  • Adds colored output to git diff
  • Adds colored output to git status

2. BASH

In addition to the following shortcuts the install script will save a .vimrc resource file with coloured syntax enabled for VIM.

2.a. Desktop Program Launchers

  • preview - Open a preview window
  • safari - Open a Safari window
  • firefox - Open a Firefox window
  • chrome - Open a Chrome window
  • f - Open a Finder window
  • textedit - Open a Textedit window
  • skype - Open a Skype window

2.b. Directory Browsing Aliases

  • home - Moves prompt to ~
  • .. - Moves prompt up one level
  • up - Same as above
  • all - Lists all files, including hidden files
  • lx - Lists all files sorted by extension
  • lk - Lists all files sorted by size ascending
  • lt - Lists all files sorted by date descending
  • lc - Lists all files sorted by/show change time,most recent last
  • lu - Lists all files sorted by/show access time,most recent last

2.c. File Operations Aliases (mostly added interactive flags)

  • rm - Equivalent to rm -i
  • cp - Equivalent to cp -i
  • mv - Equivalent to mv -i
  • mkdir- Equivalent to mkdir -p. Prevents accidentally clobbering files
  • dsclean - Get rid of those pesky .DS_Store files recursively from current location
  • ax - Assigns execution permissions (a+x)

2.d. Environmental Aliases

  • flush - Flush your dns cache
  • showhidden - 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 variables
  • libpath - Beautified display of LIBRARY PATH variables
  • du - Yields disk usage in a more readable format
  • df - Yields disk available in a more readable format
  • which - Describe a command
  • h - Console history
  • j - Print currently running jobs and their status

3. Installation

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

4. Acknowledgements

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.

About

My personal boilerplate templates for GIT and BASH dotfile with useful aliases and color schemes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published