diff options
| author | Joshua Peek <josh@joshpeek.com> | 2012-12-10 09:45:54 -0600 |
|---|---|---|
| committer | Joshua Peek <josh@joshpeek.com> | 2012-12-10 09:45:54 -0600 |
| commit | 7c170972a07b3b3d3c28624e1a2228cbe57a728f (patch) | |
| tree | dafe619aa74e8fb9a07ba018c5d808e738264121 /samples | |
| parent | d00dfd82c1170bd84c8616c34dd8a869058e49af (diff) | |
Add shell samples
Diffstat (limited to 'samples')
| -rw-r--r-- | samples/Shell/filenames/.bash_logout | 1 | ||||
| -rw-r--r-- | samples/Shell/filenames/.bash_profile | 37 | ||||
| -rw-r--r-- | samples/Shell/filenames/.bashrc | 120 | ||||
| -rw-r--r-- | samples/Shell/filenames/.cshrc | 5 | ||||
| -rw-r--r-- | samples/Shell/filenames/.login | 2 | ||||
| -rw-r--r-- | samples/Shell/filenames/.zlogout | 3 | ||||
| -rw-r--r-- | samples/Shell/filenames/.zprofile | 28 | ||||
| -rw-r--r-- | samples/Shell/filenames/.zshenv | 2 | ||||
| -rw-r--r-- | samples/Shell/filenames/bash_logout | 1 | ||||
| -rw-r--r-- | samples/Shell/filenames/bash_profile | 36 | ||||
| -rw-r--r-- | samples/Shell/filenames/bashrc | 119 | ||||
| -rw-r--r-- | samples/Shell/filenames/cshrc | 5 | ||||
| -rw-r--r-- | samples/Shell/filenames/login | 2 | ||||
| -rw-r--r-- | samples/Shell/filenames/profile | 1 | ||||
| -rw-r--r-- | samples/Shell/filenames/zlogin | 1 | ||||
| -rw-r--r-- | samples/Shell/filenames/zlogout | 3 | ||||
| -rw-r--r-- | samples/Shell/filenames/zprofile | 28 | ||||
| -rw-r--r-- | samples/Shell/filenames/zshenv | 2 | ||||
| -rw-r--r-- | samples/Shell/filenames/zshrc | 1 |
19 files changed, 395 insertions, 2 deletions
diff --git a/samples/Shell/filenames/.bash_logout b/samples/Shell/filenames/.bash_logout new file mode 100644 index 0000000..271f27d --- /dev/null +++ b/samples/Shell/filenames/.bash_logout @@ -0,0 +1 @@ +/usr/bin/clear diff --git a/samples/Shell/filenames/.bash_profile b/samples/Shell/filenames/.bash_profile index b7edb8a..319c25c 100644 --- a/samples/Shell/filenames/.bash_profile +++ b/samples/Shell/filenames/.bash_profile @@ -1 +1,36 @@ -export PATH="/usr/local/bin:/usr/bin:/bin" +## +# Environment... +## +# Set up some variables for 'screen' +if [ -z "${SCREENDIR}" ];then echo -n + export SCREENDIR="${HOME}/.screen" + # Save my screen sockets within my $HOME dir +fi +## PATH +export PATH=/usr/local/bin:/usr/local/sbin:/usr/xpg4/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/openwin/bin:/opt/mysql/current/bin +export MANPATH=/usr/local/man:/usr/share/man + +## Random ENV... +# Set $TERM to 'vt100' (a safe default) if, for some +# reason, it is set to 'network' (which is not valid!) +if [ ${TERM} == 'network' ];then echo -n + export TERM='vt100' + # not 'nsterm' because if its 'network' we're + # probly not in Terminal.app +fi +# Set $COLORTERM, all this does is trick *some* apps into +# using color in the terminal, which should happen anyway. +if [ -z "${COLORTERM}" ];then echo -n + export COLORTERM="${TERM}" +fi +# another color option, this one for BSD's ls +if [ -z "${CLICOLOR}" ];then echo -n + export CLICOLOR='1' # can be set to anything, actually +fi +# If $DISPLAY is not already set, set it! +if [ -z "${DISPLAY}" ];then echo -n + export DISPLAY=':0' +fi +## +# Source the bash rc file +[ -r "${HOME}/.bashrc" ] && . "${HOME}/.bashrc" diff --git a/samples/Shell/filenames/.bashrc b/samples/Shell/filenames/.bashrc index b7edb8a..a6394f3 100644 --- a/samples/Shell/filenames/.bashrc +++ b/samples/Shell/filenames/.bashrc @@ -1 +1,119 @@ -export PATH="/usr/local/bin:/usr/bin:/bin" +## +# Functions... *MUCH* better than aliases, and they do more too! +# but they clutter the environment... (try typing just 'set' at the prompt) +## +# The reason that some of these are... odd... is because +# I had to convert them early because bash can't do positional +# arguments in aliases! functionName () { do something $@<-arguments ; } + function ls { command ls -Fh "$@"; } + # 'command ls' to prevent loop; -A for .file, -F for dir/ link@, + # -h for 5k 3m 1g, -o for printing flags (uchg)... + function l { ls -l "$@"; } # -l to list in long format... + function ll { l "$@" | less -XF ; } # pipe into 'more' + +## +# Tips and Ticks... from http://www.caliban.org/bash/index.shtml +## +# The $CDPATH variable is so that you can be in /path/to/something and 'cd' +# to 'somethingElse' and end up in /not/the/same/path/to/somethingElse. +# iWould use it if it didn't ALWAYS echo the directory it changes to! +#CDPATH='.:~' +# +# HISTIGNORE="&:l:ls:ls *:l *:cd:cd *:[bf]g:exit:quit:q:sleep *" + # History ignores commands that include any l/ls/cd etc + # This kicks-ass! It drops repeats and other useless + # things from the command history! + HISTIGNORE="[bf]g:exit:quit:q:sleep *" + # I want to see l/ls/cd in my history + HISTCONTROL=ignoreboth + # ignores both commands that start with a space or a tab, and duplicates + # other options are as follows: + # `ignorespace' means to not enter lines which begin with a space or tab into the history list. + # `ignoredups' means to not enter lines which match the last entered line. + # `ignoreboth' combines the two options. + + shopt -s cdspell extglob progcomp + # Spell check for 'cd', extended globbing, programmable completion + +## +# Bash Completion... Cannibalised from bash_completion 20030929 +# Completion defaults... Yes, its long... +# Basically this sets up many useful defaults for command completion, these +# should probly be built into bash. Use bash_completions itself if you want +# more functionality and don't mind the hacks it uses. + complete -f -X '!*.?(t)bz2' bunzip2 bzcat bzcmp bzdiff bzegrep bzfgrep bzgrep + complete -f -X '!*.@(zip|ZIP|jar|JAR|exe|EXE|pk3|war|wsz|ear|zargo|xpi)' unzip zipinfo + complete -f -X '*.Z' compress znew + complete -f -X '!*.@(Z|gz|tgz|Gz|dz)' gunzip zcmp zdiff zcat zegrep zfgrep zgrep zless zmore + complete -f -X '!*.Z' uncompress + complete -f -X '!*.@(gif|jp?(e)g|tif?(f)|pn[gm]|p[bgp]m|bmp|xpm|ico|xwd|tga|GIF|JP?(E)G|TIF?(F)|PN[GM]|P[BGP]M|BMP|XPM|ICO|XWD|TGA)' ee display + complete -f -X '!*.@(gif|jp?(e)g|tif?(f)|png|p[bgp]m|bmp|x[bp]m|rle|rgb|pcx|fits|pm|GIF|JPG|JP?(E)G|TIF?(F)|PNG|P[BGP]M|BMP|X[BP]M|RLE|RGB|PCX|FITS|PM)' xv qiv + complete -f -X '!*.@(@(?(e)ps|?(E)PS|pdf|PDF)?(.gz|.GZ|.Z))' gv ggv + complete -f -X '!*.@(dvi|DVI)?(.@(gz|Z|bz2))' xdvi + complete -f -X '!*.@(dvi|DVI)' dvips dviselect dvitype + complete -f -X '!*.@(pdf|PDF)' acroread xpdf + complete -f -X '!*.texi*' makeinfo texi2html + complete -f -X '!*.@(?(la)tex|?(LA)TEX|texi|TEXI|dtx|DTX|ins|INS)' tex latex slitex jadetex pdfjadetex pdftex pdflatex texi2dvi + complete -f -X '!*.@(mp3|MP3|m3u)' mpg123 mpg321 + complete -f -X '!*.@(mp?(e)g|MP?(E)G|wma|avi|AVI|asf|vob|bin|dat|vcd|ps|pes|fli|viv|rm|ram|yuv|mov|MOV|qt|QT|wmv|mp3|MP3|ogg|OGG|ogm|OGM|mp4|MP4|wav|WAV)' xine + complete -f -X '!*.@(avi|asf|wmv)' aviplay + complete -f -X '!*.@(rm|ram|smi?(l))' realplay + complete -f -X '!*.@(mp?(e)g|avi|mov|qt)' xanim + complete -f -X '!*.@(ogg|OGG|m3u)' ogg123 + complete -f -X '!*.@(mp3|MP3|ogg|OGG|pls|m3u)' gqmpeg freeamp + complete -f -X '!*.@(mp[23]|MP[23]|ogg|OGG|wav|WAV|pls|m3u|xm|mod|s[3t]m|it|mtm|ult|flac)' xmms + complete -f -X '!*.fig' xfig + complete -f -X '!*.@(mid?(i))' timidity playmidi + complete -f -X '.*|*.@(o|so|so.!(conf)|a|tar?(.@(gz|bz2))|tgz|tbz2|rpm|zip|ZIP|gif|GIF|jp?(e)g|JP?(E)G|mp3|MP3|mp?(e)g|MPG|avi|AVI|asf|ASF|ogg|OGG|class|CLASS)' vi vim gvim rvim view rview rgvim rgview gview emacs + complete -f -X '!*.@(exe|EXE|com|COM|scr|SCR)' wine + complete -f -X '!*.@(zip|ZIP|z|Z|gz|GZ|tgz|TGZ)' bzme + complete -f -X '!*.@(?([xX]|[sS])[hH][tT][mM]?([lL]))' netscape mozilla lynx opera w3m galeon curl dillo elinks links +# + complete -u su passwd groups # user commands see only users + complete -A stopped -P '%' bg # bg completes with stopped jobs + complete -j -P '%' fg jobs disown # other job commands + complete -v readonly unset export # readonly and unset complete with shell variables + complete -A setopt set # set completes with set options + complete -A shopt shopt # shopt completes with shopt options + complete -A helptopic help # helptopics + complete -a unalias # unalias completes with aliases + complete -A binding bind # bind completes with readline bindings (make this more intelligent) + complete -c command type which man #sudo # type, which, man complete on commands + complete -d pushd cd rmdir # Make directory commands see only directories + complete -W ' ' alias # no filenames for alias, + +## +# Set the prompt +## + PS1="[\h:\w] \[\033[1;34m\]\u\[\033[0m\]\\$ " + # My prompt line: "[gaelicWizard:~/Documents] user$ " user is in blue + # Or: "[gaelicWizard:~/Documents] root# " root is in blue +## +# Aliases: +## +# Aliases frequently used... + alias ..='cd ..;l' + alias cd..='cd ..' + alias which='type' # 'which' in (t)csh is same(?) as 'type' in bash... + alias quit='exit' + alias q='quit' # and 'q' is even shorter! :-D + alias v='vim' + alias rehash='. ~/.bashrc;' # source ~/.bashrc after I edit it + alias pg='ps -afe|grep -v grep|grep' + alias make='gmake' + alias patch='gpatch' + alias sed='gsed' + alias awk='nawk' + alias diff='gdiff' + alias grep='ggrep' + alias find='gfind' + alias ps='/usr/ucb/ps' + alias whoami='/usr/ucb/whoami' + alias ping='ping -s' + alias man='GROFF_NO_SGR= TCAT="less -s" TROFF="groff -Tascii" man -t' + + +# The rest are uncategorised and fairly random... :-) +shopt -s histappend +PROMPT_COMMAND='echo -ne "\033]0;${USER} on ${HOSTNAME} at ${PWD}\007" && history -a' +export PATH=/usr/local/bin:/usr/local/sbin:/usr/xpg4/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/openwin/bin:/opt/mysql/current/bin diff --git a/samples/Shell/filenames/.cshrc b/samples/Shell/filenames/.cshrc new file mode 100644 index 0000000..e036088 --- /dev/null +++ b/samples/Shell/filenames/.cshrc @@ -0,0 +1,5 @@ +umask 022 +set path=(/opt/local/bin /opt/local/sbin /bin /usr/bin) +if ( $?prompt ) then + set history=32 +endif diff --git a/samples/Shell/filenames/.login b/samples/Shell/filenames/.login new file mode 100644 index 0000000..647ad96 --- /dev/null +++ b/samples/Shell/filenames/.login @@ -0,0 +1,2 @@ +stty -istrip +# setenv TERM `tset -Q -` diff --git a/samples/Shell/filenames/.zlogout b/samples/Shell/filenames/.zlogout new file mode 100644 index 0000000..4360c56 --- /dev/null +++ b/samples/Shell/filenames/.zlogout @@ -0,0 +1,3 @@ +# Store dirs stack +# See ~/.dotfiles/oh-my-zsh/plugins/dirspersist.plugin.zsh +dirpersiststore 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 diff --git a/samples/Shell/filenames/.zshenv b/samples/Shell/filenames/.zshenv new file mode 100644 index 0000000..76e4b02 --- /dev/null +++ b/samples/Shell/filenames/.zshenv @@ -0,0 +1,2 @@ +fpath=($fpath $HOME/.zsh/func) +typeset -U fpath diff --git a/samples/Shell/filenames/bash_logout b/samples/Shell/filenames/bash_logout new file mode 100644 index 0000000..271f27d --- /dev/null +++ b/samples/Shell/filenames/bash_logout @@ -0,0 +1 @@ +/usr/bin/clear diff --git a/samples/Shell/filenames/bash_profile b/samples/Shell/filenames/bash_profile new file mode 100644 index 0000000..319c25c --- /dev/null +++ b/samples/Shell/filenames/bash_profile @@ -0,0 +1,36 @@ +## +# Environment... +## +# Set up some variables for 'screen' +if [ -z "${SCREENDIR}" ];then echo -n + export SCREENDIR="${HOME}/.screen" + # Save my screen sockets within my $HOME dir +fi +## PATH +export PATH=/usr/local/bin:/usr/local/sbin:/usr/xpg4/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/openwin/bin:/opt/mysql/current/bin +export MANPATH=/usr/local/man:/usr/share/man + +## Random ENV... +# Set $TERM to 'vt100' (a safe default) if, for some +# reason, it is set to 'network' (which is not valid!) +if [ ${TERM} == 'network' ];then echo -n + export TERM='vt100' + # not 'nsterm' because if its 'network' we're + # probly not in Terminal.app +fi +# Set $COLORTERM, all this does is trick *some* apps into +# using color in the terminal, which should happen anyway. +if [ -z "${COLORTERM}" ];then echo -n + export COLORTERM="${TERM}" +fi +# another color option, this one for BSD's ls +if [ -z "${CLICOLOR}" ];then echo -n + export CLICOLOR='1' # can be set to anything, actually +fi +# If $DISPLAY is not already set, set it! +if [ -z "${DISPLAY}" ];then echo -n + export DISPLAY=':0' +fi +## +# Source the bash rc file +[ -r "${HOME}/.bashrc" ] && . "${HOME}/.bashrc" diff --git a/samples/Shell/filenames/bashrc b/samples/Shell/filenames/bashrc new file mode 100644 index 0000000..a6394f3 --- /dev/null +++ b/samples/Shell/filenames/bashrc @@ -0,0 +1,119 @@ +## +# Functions... *MUCH* better than aliases, and they do more too! +# but they clutter the environment... (try typing just 'set' at the prompt) +## +# The reason that some of these are... odd... is because +# I had to convert them early because bash can't do positional +# arguments in aliases! functionName () { do something $@<-arguments ; } + function ls { command ls -Fh "$@"; } + # 'command ls' to prevent loop; -A for .file, -F for dir/ link@, + # -h for 5k 3m 1g, -o for printing flags (uchg)... + function l { ls -l "$@"; } # -l to list in long format... + function ll { l "$@" | less -XF ; } # pipe into 'more' + +## +# Tips and Ticks... from http://www.caliban.org/bash/index.shtml +## +# The $CDPATH variable is so that you can be in /path/to/something and 'cd' +# to 'somethingElse' and end up in /not/the/same/path/to/somethingElse. +# iWould use it if it didn't ALWAYS echo the directory it changes to! +#CDPATH='.:~' +# +# HISTIGNORE="&:l:ls:ls *:l *:cd:cd *:[bf]g:exit:quit:q:sleep *" + # History ignores commands that include any l/ls/cd etc + # This kicks-ass! It drops repeats and other useless + # things from the command history! + HISTIGNORE="[bf]g:exit:quit:q:sleep *" + # I want to see l/ls/cd in my history + HISTCONTROL=ignoreboth + # ignores both commands that start with a space or a tab, and duplicates + # other options are as follows: + # `ignorespace' means to not enter lines which begin with a space or tab into the history list. + # `ignoredups' means to not enter lines which match the last entered line. + # `ignoreboth' combines the two options. + + shopt -s cdspell extglob progcomp + # Spell check for 'cd', extended globbing, programmable completion + +## +# Bash Completion... Cannibalised from bash_completion 20030929 +# Completion defaults... Yes, its long... +# Basically this sets up many useful defaults for command completion, these +# should probly be built into bash. Use bash_completions itself if you want +# more functionality and don't mind the hacks it uses. + complete -f -X '!*.?(t)bz2' bunzip2 bzcat bzcmp bzdiff bzegrep bzfgrep bzgrep + complete -f -X '!*.@(zip|ZIP|jar|JAR|exe|EXE|pk3|war|wsz|ear|zargo|xpi)' unzip zipinfo + complete -f -X '*.Z' compress znew + complete -f -X '!*.@(Z|gz|tgz|Gz|dz)' gunzip zcmp zdiff zcat zegrep zfgrep zgrep zless zmore + complete -f -X '!*.Z' uncompress + complete -f -X '!*.@(gif|jp?(e)g|tif?(f)|pn[gm]|p[bgp]m|bmp|xpm|ico|xwd|tga|GIF|JP?(E)G|TIF?(F)|PN[GM]|P[BGP]M|BMP|XPM|ICO|XWD|TGA)' ee display + complete -f -X '!*.@(gif|jp?(e)g|tif?(f)|png|p[bgp]m|bmp|x[bp]m|rle|rgb|pcx|fits|pm|GIF|JPG|JP?(E)G|TIF?(F)|PNG|P[BGP]M|BMP|X[BP]M|RLE|RGB|PCX|FITS|PM)' xv qiv + complete -f -X '!*.@(@(?(e)ps|?(E)PS|pdf|PDF)?(.gz|.GZ|.Z))' gv ggv + complete -f -X '!*.@(dvi|DVI)?(.@(gz|Z|bz2))' xdvi + complete -f -X '!*.@(dvi|DVI)' dvips dviselect dvitype + complete -f -X '!*.@(pdf|PDF)' acroread xpdf + complete -f -X '!*.texi*' makeinfo texi2html + complete -f -X '!*.@(?(la)tex|?(LA)TEX|texi|TEXI|dtx|DTX|ins|INS)' tex latex slitex jadetex pdfjadetex pdftex pdflatex texi2dvi + complete -f -X '!*.@(mp3|MP3|m3u)' mpg123 mpg321 + complete -f -X '!*.@(mp?(e)g|MP?(E)G|wma|avi|AVI|asf|vob|bin|dat|vcd|ps|pes|fli|viv|rm|ram|yuv|mov|MOV|qt|QT|wmv|mp3|MP3|ogg|OGG|ogm|OGM|mp4|MP4|wav|WAV)' xine + complete -f -X '!*.@(avi|asf|wmv)' aviplay + complete -f -X '!*.@(rm|ram|smi?(l))' realplay + complete -f -X '!*.@(mp?(e)g|avi|mov|qt)' xanim + complete -f -X '!*.@(ogg|OGG|m3u)' ogg123 + complete -f -X '!*.@(mp3|MP3|ogg|OGG|pls|m3u)' gqmpeg freeamp + complete -f -X '!*.@(mp[23]|MP[23]|ogg|OGG|wav|WAV|pls|m3u|xm|mod|s[3t]m|it|mtm|ult|flac)' xmms + complete -f -X '!*.fig' xfig + complete -f -X '!*.@(mid?(i))' timidity playmidi + complete -f -X '.*|*.@(o|so|so.!(conf)|a|tar?(.@(gz|bz2))|tgz|tbz2|rpm|zip|ZIP|gif|GIF|jp?(e)g|JP?(E)G|mp3|MP3|mp?(e)g|MPG|avi|AVI|asf|ASF|ogg|OGG|class|CLASS)' vi vim gvim rvim view rview rgvim rgview gview emacs + complete -f -X '!*.@(exe|EXE|com|COM|scr|SCR)' wine + complete -f -X '!*.@(zip|ZIP|z|Z|gz|GZ|tgz|TGZ)' bzme + complete -f -X '!*.@(?([xX]|[sS])[hH][tT][mM]?([lL]))' netscape mozilla lynx opera w3m galeon curl dillo elinks links +# + complete -u su passwd groups # user commands see only users + complete -A stopped -P '%' bg # bg completes with stopped jobs + complete -j -P '%' fg jobs disown # other job commands + complete -v readonly unset export # readonly and unset complete with shell variables + complete -A setopt set # set completes with set options + complete -A shopt shopt # shopt completes with shopt options + complete -A helptopic help # helptopics + complete -a unalias # unalias completes with aliases + complete -A binding bind # bind completes with readline bindings (make this more intelligent) + complete -c command type which man #sudo # type, which, man complete on commands + complete -d pushd cd rmdir # Make directory commands see only directories + complete -W ' ' alias # no filenames for alias, + +## +# Set the prompt +## + PS1="[\h:\w] \[\033[1;34m\]\u\[\033[0m\]\\$ " + # My prompt line: "[gaelicWizard:~/Documents] user$ " user is in blue + # Or: "[gaelicWizard:~/Documents] root# " root is in blue +## +# Aliases: +## +# Aliases frequently used... + alias ..='cd ..;l' + alias cd..='cd ..' + alias which='type' # 'which' in (t)csh is same(?) as 'type' in bash... + alias quit='exit' + alias q='quit' # and 'q' is even shorter! :-D + alias v='vim' + alias rehash='. ~/.bashrc;' # source ~/.bashrc after I edit it + alias pg='ps -afe|grep -v grep|grep' + alias make='gmake' + alias patch='gpatch' + alias sed='gsed' + alias awk='nawk' + alias diff='gdiff' + alias grep='ggrep' + alias find='gfind' + alias ps='/usr/ucb/ps' + alias whoami='/usr/ucb/whoami' + alias ping='ping -s' + alias man='GROFF_NO_SGR= TCAT="less -s" TROFF="groff -Tascii" man -t' + + +# The rest are uncategorised and fairly random... :-) +shopt -s histappend +PROMPT_COMMAND='echo -ne "\033]0;${USER} on ${HOSTNAME} at ${PWD}\007" && history -a' +export PATH=/usr/local/bin:/usr/local/sbin:/usr/xpg4/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/openwin/bin:/opt/mysql/current/bin diff --git a/samples/Shell/filenames/cshrc b/samples/Shell/filenames/cshrc new file mode 100644 index 0000000..e036088 --- /dev/null +++ b/samples/Shell/filenames/cshrc @@ -0,0 +1,5 @@ +umask 022 +set path=(/opt/local/bin /opt/local/sbin /bin /usr/bin) +if ( $?prompt ) then + set history=32 +endif diff --git a/samples/Shell/filenames/login b/samples/Shell/filenames/login new file mode 100644 index 0000000..647ad96 --- /dev/null +++ b/samples/Shell/filenames/login @@ -0,0 +1,2 @@ +stty -istrip +# setenv TERM `tset -Q -` diff --git a/samples/Shell/filenames/profile b/samples/Shell/filenames/profile new file mode 100644 index 0000000..b7edb8a --- /dev/null +++ b/samples/Shell/filenames/profile @@ -0,0 +1 @@ +export PATH="/usr/local/bin:/usr/bin:/bin" diff --git a/samples/Shell/filenames/zlogin b/samples/Shell/filenames/zlogin new file mode 100644 index 0000000..b7edb8a --- /dev/null +++ b/samples/Shell/filenames/zlogin @@ -0,0 +1 @@ +export PATH="/usr/local/bin:/usr/bin:/bin" diff --git a/samples/Shell/filenames/zlogout b/samples/Shell/filenames/zlogout new file mode 100644 index 0000000..4360c56 --- /dev/null +++ b/samples/Shell/filenames/zlogout @@ -0,0 +1,3 @@ +# Store dirs stack +# See ~/.dotfiles/oh-my-zsh/plugins/dirspersist.plugin.zsh +dirpersiststore 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 diff --git a/samples/Shell/filenames/zshenv b/samples/Shell/filenames/zshenv new file mode 100644 index 0000000..76e4b02 --- /dev/null +++ b/samples/Shell/filenames/zshenv @@ -0,0 +1,2 @@ +fpath=($fpath $HOME/.zsh/func) +typeset -U fpath diff --git a/samples/Shell/filenames/zshrc b/samples/Shell/filenames/zshrc new file mode 100644 index 0000000..b7edb8a --- /dev/null +++ b/samples/Shell/filenames/zshrc @@ -0,0 +1 @@ +export PATH="/usr/local/bin:/usr/bin:/bin" |
