Coder Social home page Coder Social logo

bash_profile's Introduction

Bash profile for Terminal

A .bash_profile for your convenience. This profile enables colors and introduces handy custom commands to your terminal.

A quick primer on .bash_profile for mac users

There is a hidden file in your Mac’s user directory named .bash_profile. This file is loaded before Terminal loads your shell environment and contains all the startup configuration and preferences for your command line interface. Within it you can change your terminal promt, change the colors of text, add aliases to functions you use all the time, and so much more.

Getting Started

To install, just paste this into the terminal:

curl -3s https://raw.githubusercontent.com/patrickkempff/bash_profile/master/install.sh | bash

Once the profile has been installed, you can update it by typing the following command:

bash_profile_update

Usage examples

Only the primarily commands are listed below , so please consider the profile itself as required reading for optimal usage.

General

Quick cd to the Development directory:

dev

Quick cd to the Vagrant boxes directory:

vgb

Remove all .DS_Store files (recursivly):

remove_ds

Open a file in Sublime Text:

slt file.ext

Create a new file and open it in Sublime Text:

sltn file.ext

Open the current folder in Finder:

f

Cd to the current Finder folder:

cdf

Create a new folder and cd inside:

mcd

Generate a random password salt with a given length or a default length of 32 if none is given:

salt
salt 64
salt 16

Generate a random password:

password

Git

Show a compact and colorful git log:

gl

Show the complete git log:

gll

Open the GitHub/Beanstalk/BitBucket web page of the current git repository:

repo
github
beanstalk
bitbucket

Networking

View the response headers of a given url:

headers google.nl

View the public facing ip adress:

myip

List all active connections:

connections

Flush the DNS cache:

flush_dns

Dummy files

You can use make1mb, make5mb, make10mb, make100mb and make1gb to generate a dummy file of the given size (all zeros).

Special thanks:

Nathaniel Landau, http://natelandau.com/
Alias, http://alias.sh/ Dion Snoeijen, http://www.diovisuals.com/

bash_profile's People

Contributors

dionsnoeijen avatar patrickkempff 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.