aboutsummaryrefslogtreecommitdiff
path: root/samples/Shell/filenames/.zprofile
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2012-12-10 09:45:54 -0600
committerJoshua Peek <josh@joshpeek.com>2012-12-10 09:45:54 -0600
commit7c170972a07b3b3d3c28624e1a2228cbe57a728f (patch)
treedafe619aa74e8fb9a07ba018c5d808e738264121 /samples/Shell/filenames/.zprofile
parentd00dfd82c1170bd84c8616c34dd8a869058e49af (diff)
Add shell samples
Diffstat (limited to 'samples/Shell/filenames/.zprofile')
-rw-r--r--samples/Shell/filenames/.zprofile28
1 files changed, 28 insertions, 0 deletions
diff --git a/samples/Shell/filenames/.zprofile b/samples/Shell/filenames/.zprofile
new file mode 100644
index 0000000..a89558e
--- /dev/null
+++ b/samples/Shell/filenames/.zprofile
@@ -0,0 +1,28 @@
+##############################################################################
+#Import the shell-agnostic (Bash or Zsh) environment config
+##############################################################################
+source ~/.profile
+
+##############################################################################
+# History Configuration
+##############################################################################
+HISTSIZE=5000 #How many lines of history to keep in memory
+HISTFILE=~/.zsh_history #Where to save history to disk
+SAVEHIST=5000 #Number of history entries to save to disk
+HISTDUP=erase #Erase duplicates in the history file
+setopt appendhistory #Append history to the history file (no overwriting)
+setopt sharehistory #Share history across terminals
+setopt incappendhistory #Immediately append to the history file, not just when a term is killed
+
+##############################################################################
+# sjl/z-zsh setup
+##############################################################################
+#. ~/.dotfiles/z-zsh/z.sh
+#function precmd () {
+# z --add "$(pwd -P)"
+#}
+
+##############################################################################
+# rupa/z setup
+##############################################################################
+. ~/.dotfiles/z-rupa/z.sh