diff --git a/profiles/develop/zsh/functions/chext b/profiles/develop/zsh/functions/chext new file mode 100644 index 00000000..52905a9f --- /dev/null +++ b/profiles/develop/zsh/functions/chext @@ -0,0 +1,5 @@ +[[ -z $3 ]] || return 1 +file=$1 +ext=$2 +new="${file:r}.${ext}" +mv $file $new diff --git a/profiles/develop/zsh/functions/rnm b/profiles/develop/zsh/functions/rnm new file mode 100644 index 00000000..766bc9cf --- /dev/null +++ b/profiles/develop/zsh/functions/rnm @@ -0,0 +1,4 @@ +[[ -z $3 ]] || return 1 +head=${1:h} +name="${head}/${2}" +mv $1 $name