diff options
author | Ryan Kavanagh <rak@debian.org> | 2012-05-06 11:03:34 -0400 |
---|---|---|
committer | Ryan Kavanagh <rak@debian.org> | 2012-05-06 11:03:34 -0400 |
commit | bb0b36ce9b4e291304c92fabf692c6e0175744cb (patch) | |
tree | 1becb809ecedcb04e813429802425446085da57d /.zshrc | |
parent | First attempt at fixing the 6.4.0 offlineimap breakage (diff) |
Only have aliases for cp/mkdir/mv/ln on Linux
Diffstat (limited to '.zshrc')
-rw-r--r-- | .zshrc | 24 |
1 files changed, 14 insertions, 10 deletions
@@ -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. |