# HG changeset patch # User Mikael Berthe # Date 1486295170 -3600 # Node ID 9c238177f98aa0bbe04c4f5142fdf3f351e3ee34 # Parent 89707240553f5d06f9bd58ae89e4fa76a023fd97 Fix typo (s/functions/function/) diff -r 89707240553f -r 9c238177f98a zshrc.d/30-functions.zrc --- a/zshrc.d/30-functions.zrc Thu Sep 22 19:18:09 2016 +0200 +++ b/zshrc.d/30-functions.zrc Sun Feb 05 12:46:10 2017 +0100 @@ -41,7 +41,7 @@ # This function seen in Frank Terbeck config files is an improvement over # my previous mkcd alias... -functions mkcd() { +function mkcd() { [[ -z $1 ]] && printf 'usage: mkcd NEW-DIRECTORY\n' && return 1 [[ -d $1 ]] && printf 'mkcd: Directory %s already exists; cd-ing\n' $1 command mkdir -p -- $1