From 3ce280fb10d98a336509919b37a92eb14fd778a5 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Fri, 5 Feb 2016 23:07:12 +0100 Subject: [PATCH] [bash] add combined `mkdir`and `cd`-> mkcd --- bash_profile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bash_profile b/bash_profile index d9e8e5f..67b279f 100644 --- a/bash_profile +++ b/bash_profile @@ -51,6 +51,9 @@ export GIT_PS1_SHOWUNTRACKEDFILES=1 # show % if something is untracked source git-completion.bash source git-prompt.sh +# combined mkdir and cd +mkcd() { mkdir -p -- "$1" && cd -P -- "$1"; } + # Change a color in the terminal's palette change_palette() ( IFS="" # $* should be joined without spaces