From bb0b36ce9b4e291304c92fabf692c6e0175744cb Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Sun, 6 May 2012 11:03:34 -0400 Subject: Only have aliases for cp/mkdir/mv/ln on Linux --- .zshrc | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index 88af97d..0dae9f6 100644 --- a/.zshrc +++ b/.zshrc @@ -113,20 +113,24 @@ fi # Alias/custom commands # +# Many of these options don's exist on BSD rm/cp/mkdir/ln/etc. +# # Some are just in case - for 'rm', 'cp' and 'mv' - ask about overwriting or # deleting files. # Furthermore, be verbose about what each command is performing to be present of # what is occuring every time. -alias cp="cp -iv" -alias mkdir="mkdir -v" -alias mv="mv -iv" -alias ln="ln -v" -# Only delete files on the current file system to avoid removing recursively -# from bind mounts. -alias rm="SUBSTS_RM -iv --one-file-system" - -alias chown="chown -v" -alias chmod="chmod -v" +if [[ `uname` = "Linux" ]]; then + alias cp="cp -iv" + alias mkdir="mkdir -v" + alias mv="mv -iv" + alias ln="ln -v" + # Only delete files on the current file system to avoid removing recursively + # from bind mounts. + alias rm="SUBSTS_RM -iv --one-file-system" + + alias chown="chown -v" + alias chmod="chmod -v" +fi # Cause encfs unmount a mounted encrypted partition after twenty minutes of # inactivity by default. -- cgit v1.2.3