X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.shellrc;h=50dfa870935e741d1bb3f71239a19975e05c82db;hp=e47cda2abd976cfa13f98fccf3705c1146a585c8;hb=a116737b33bcc774c97d38101b130425df6aa90d;hpb=31299c596ace129585d2a39fe9cb60076b53ff3b diff --git a/.shellrc b/.shellrc index e47cda2..50dfa87 100644 --- a/.shellrc +++ b/.shellrc @@ -137,16 +137,6 @@ include() } -function mkcd { - if [ $# -ne 1 ]; then - echo "Usage: mkcd directory_name" >&2 - elif [ -d "$1" ]; then - cd "$1" - elif [ -e "$1" ]; then - echo "Error: $1 is a file" >&2 - else - mkdir -p "$1" && cd "$1" - fi } @@ -217,6 +207,19 @@ mc() { } +function mkcd { + if [ $# -ne 1 ]; then + echo "Usage: mkcd directory_name" >&2 + elif [ -d "$1" ]; then + cd "$1" + elif [ -e "$1" ]; then + echo "Error: $1 is a file" >&2 + else + mkdir -p "$1" && cd "$1" + fi +} + + tmux() { case "$TERM" in rxvt)