Code Monkey home page Code Monkey logo

bash_profile's Introduction

.bash_profile

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

What it does

  1. Sets your default editor to vim
  2. Adds git auto completion
  3. Modifies the prompt to show git related information
  4. If rbenv is available, will initialize it
  5. Introduces many aliases (see below for a list)

General Aliases

  • cd.. - alias for cd ..
  • cls - alias for clear
  • ls - alias for ls -f1 -FGahp
  • ll - alias for ls -l
  • reload_profile - reloads the .bash_profile file
  • trash - moves a file to the trash
  • empty_trash - empties the trash
  • hitch - an alias for using hitch.
  • unhitch - the opposite of hitch

Rails Related Aliases

  • t - clears the screen and runs rake spec

Git Aliases

  • incoming - shows incoming commits from origin for the current branch
  • outgoing - shows outgoing commits to origin for the current branch
  • dirty-branches - shows which branches are already merged into master and can be deleted
  • clean-branches - deletes the dirty branches
  • push-branch - pushes the current branch to origin (git push --set-upstream...)
  • gc - alias for git checkout
  • gcm - alias for git checkout master
  • gcd - alias for git checkout development
  • gp - alias for git pull
  • gs - alias for git status
  • gr - undoes the latest local commit and stages the files
  • grr - undoes all local commits and resets the branch to HEAD. Warning: hard reset.
  • ci - alias for git commit -a
  • gb - creates a new branch (first argument) and checks it out
  • gd - deletes a branch (first argument)
  • gl - lists all the local branches with their remotes and the last commit message
  • gla - lists all the branches (local + remote) with their remotes and the last commit message
  • glr - lists only remote branches with their last commit message

bash_profile's People

Contributors

eddyluten avatar

Watchers

Eddy Luten avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.