X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=894eb886654911115aa14a285def90164f32b114;hb=500599cffc63fdd98aaf4bf8c67d627e23961785;hp=b48301d044c5b5da874015515618d572214094df;hpb=ad6af5157b3821e5277f45883b1c7b5c54088494;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index b48301d..894eb88 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2149,19 +2149,6 @@ deswap() { print 'Finished, running "swapoff -a; swapon -a" may also be useful.' } -# spawn a minimally set up mksh - useful if you want to umount /usr/. -minimal-shell() { - emulate -L zsh - local shell="/bin/mksh" - - if [[ ! -x ${shell} ]]; then - printf '`%s'\'' not available, giving up.\n' ${shell} >&2 - return 1 - fi - - exec env -i ENV="/etc/minimal-shellrc" HOME="$HOME" TERM="$TERM" ${shell} -} - # a wrapper for vim, that deals with title setting # VIM_OPTIONS # set this array to a set of options to vim you always want @@ -2378,9 +2365,10 @@ cd() { } #f5# Create Directoy and \kbd{cd} to it -mcd() { +mkcd() { mkdir -p "$@" && cd "$@" } + #f5# Create temporary directory and \kbd{cd} to it cdt() { local t @@ -2423,22 +2411,6 @@ inplaceMkDirs() { #k# mkdir -p