From 7174d3d2ca7d69122fdc441472d183d0c433ec8c Mon Sep 17 00:00:00 2001 From: staticsafe Date: Sat, 7 Jan 2012 19:53:57 -0500 Subject: [PATCH 1/3] added alias to display permissions in octal easily. --- .zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.zshrc b/.zshrc index 9f5389a..166e9a1 100644 --- a/.zshrc +++ b/.zshrc @@ -13,3 +13,4 @@ setopt EXTENDED_GLOB #aliases alias rmdir='rm -r' alias sl='ls' +alias octalperm='stat -c \'%A %a %n\' *' From f9d5f98fb6b1ae1e9ff1b4c031caadff57fb7436 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Sun, 8 Jan 2012 14:41:46 -0500 Subject: [PATCH 2/3] Adding options for zsh history. --- .zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.zshrc b/.zshrc index 166e9a1..2d4c7a3 100644 --- a/.zshrc +++ b/.zshrc @@ -10,6 +10,15 @@ setopt APPEND_HISTORY setopt EXTENDED_HISTORY setopt EXTENDED_GLOB +# number of lines kept in history +export HISTSIZE=1000 +# number of lines saved in the history after logout +export SAVEHIST=1000 +# location of history +export HISTFILE=~/.zhistory +# append command to history file once executed +setopt inc_append_history + #aliases alias rmdir='rm -r' alias sl='ls' From 4a4dc9b3e9d2d866247d8b2d29cee97a9c75828f Mon Sep 17 00:00:00 2001 From: staticsafe Date: Sun, 8 Jan 2012 14:47:59 -0500 Subject: [PATCH 3/3] Fixed octalperm alias syntax. --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 2d4c7a3..a8e1490 100644 --- a/.zshrc +++ b/.zshrc @@ -22,4 +22,4 @@ setopt inc_append_history #aliases alias rmdir='rm -r' alias sl='ls' -alias octalperm='stat -c \'%A %a %n\' *' +alias octalperm="stat -c '%A %a %n' *"