X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=a13720a16c6a55d43732b214729c732e779f1c7e;hb=0907a3a9b51ea8628c4970a26333fd7eee97f2c9;hp=0f43289dfc8c8cf51bf80d3b38c55c7499600e99;hpb=35c60287bfe595a69ec42354c887c79fa1f3a1b9;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 0f43289..a13720a 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1502,6 +1502,11 @@ If you want to use xinit anyway please call \"/usr/bin/xinit\"." exec env -i ENV="/etc/minimal-shellrc" HOME="$HOME" TERM="$TERM" ksh } + # make a backup of a file + bk() { + cp -a "$1" "${1}_$(date --iso-8601=seconds)" + } + # Switching shell safely and efficiently? http://www.zsh.org/mla/workers/2001/msg02410.html # bash() { # NO_SWITCH="yes" command bash "$@"