[bash] add combined mkdirand cd-> mkcd

This commit is contained in:
Fernando Schauenburg 2016-02-05 23:07:12 +01:00
parent 83f8531ce1
commit 3ce280fb10

View file

@ -51,6 +51,9 @@ export GIT_PS1_SHOWUNTRACKEDFILES=1 # show % if something is untracked
source git-completion.bash source git-completion.bash
source git-prompt.sh source git-prompt.sh
# combined mkdir and cd
mkcd() { mkdir -p -- "$1" && cd -P -- "$1"; }
# Change a color in the terminal's palette # Change a color in the terminal's palette
change_palette() ( change_palette() (
IFS="" # $* should be joined without spaces IFS="" # $* should be joined without spaces