aboutsummaryrefslogtreecommitdiff
path: root/.zsh
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2012-05-06 11:03:34 -0400
committerRyan Kavanagh <rak@debian.org>2012-05-06 11:03:34 -0400
commitbb0b36ce9b4e291304c92fabf692c6e0175744cb (patch)
tree1becb809ecedcb04e813429802425446085da57d /.zsh
parentFirst attempt at fixing the 6.4.0 offlineimap breakage (diff)
Only have aliases for cp/mkdir/mv/ln on Linux
Diffstat (limited to '')
-rw-r--r--.zshrc24
1 files changed, 14 insertions, 10 deletions
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.