Skip to content

Instantly share code, notes, and snippets.

@ptb
Last active September 5, 2017 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptb/deecb334126d4836d0cd06201c40348c to your computer and use it in GitHub Desktop.
Save ptb/deecb334126d4836d0cd06201c40348c to your computer and use it in GitHub Desktop.
#!/bin/sh
#-- Exports ----------------------------------------------------
export \
HISTFILE="${ZDOTDIR:-$HOME}/.zhistory" \
HISTSIZE=50000 \
SAVEHIST=50000
#-- Changing Directories ---------------------------------------
setopt \
no_autocd \
no_autopushd \
no_cdablevars \
no_chasedots \
no_chaselinks \
NO_posixcd \
no_pushdignoredups \
no_pushdminus \
no_pushdsilent \
no_pushdtohome
#-- Completion -------------------------------------------------
setopt \
ALWAYSLASTPROMPT \
no_alwaystoend \
AUTOLIST \
AUTOMENU \
no_autonamedirs \
AUTOPARAMKEYS \
AUTOPARAMSLASH \
AUTOREMOVESLASH \
no_bashautolist \
no_completealiases \
no_completeinword \
no_globcomplete \
HASHLISTALL \
LISTAMBIGUOUS \
LISTBEEP \
no_listpacked \
no_listrowsfirst \
LISTTYPES \
no_menucomplete \
no_recexact
#-- Expansion and Globbing -------------------------------------
setopt \
BADPATTERN \
BAREGLOBQUAL \
no_braceccl \
CASEGLOB \
CASEMATCH \
NO_cshnullglob \
EQUALS \
no_extendedglob \
no_forcefloat \
GLOB \
NO_globassign \
no_globdots \
no_globstarshort \
NO_globsubst \
no_histsubstpattern \
NO_ignorebraces \
no_ignoreclosebraces \
NO_kshglob \
no_magicequalsubst \
no_markdirs \
MULTIBYTE \
NOMATCH \
no_nullglob \
no_numericglobsort \
no_rcexpandparam \
no_rematchpcre \
NO_shglob \
UNSET \
no_warncreateglobal \
no_warnnestedvar
#-- History ----------------------------------------------------
setopt \
APPENDHISTORY \
BANGHIST \
NO_extendedhistory \
no_histallowclobber \
HISTBEEP \
no_histexpiredupsfirst \
no_histfcntllock \
no_histfindnodups \
no_histignorealldups \
no_histignoredups \
no_histignorespace \
no_histlexwords \
no_histnofunctions \
no_histnostore \
no_histreduceblanks \
HISTSAVEBYCOPY \
no_histsavenodups \
no_histverify \
no_incappendhistory \
no_incappendhistorytime \
NO_sharehistory
#-- Initialisation ---------------------------------------------
setopt \
no_allexport \
GLOBALEXPORT \
GLOBALRCS \
RCS
#-- Input/Output -----------------------------------------------
setopt \
ALIASES \
CLOBBER \
no_correct \
no_correctall \
no_dvorak \
FLOWCONTROL \
no_ignoreeof \
NO_interactivecomments \
HASHCMDS \
HASHDIRS \
no_hashexecutablesonly \
no_mailwarning \
no_pathdirs \
NO_pathscript \
no_printeightbit \
no_printexitvalue \
no_rcquotes \
NO_rmstarsilent \
no_rmstarwait \
SHORTLOOPS \
no_sunkeyboardhack
#-- Job Control ------------------------------------------------
setopt \
no_autocontinue \
no_autoresume \
BGNICE \
CHECKJOBS \
HUP \
no_longlistjobs \
no_monitor \
NOTIFY \
NO_posixjobs
#-- Prompting --------------------------------------------------
setopt \
NO_promptbang \
PROMPTCR \
PROMPTSP \
PROMPTPERCENT \
NO_promptsubst \
no_transientrprompt
#-- Scripts and Functions --------------------------------------
setopt \
NO_aliasfuncdef \
no_cbases \
no_cprecedences \
DEBUGBEFORECMD \
no_errexit \
no_errreturn \
EVALLINENO \
EXEC \
FUNCTIONARGZERO \
no_localloops \
NO_localoptions \
no_localpatterns \
NO_localtraps \
MULTIFUNCDEF \
MULTIOS \
NO_octalzeroes \
no_pipefail \
no_sourcetrace \
no_typesetsilent \
no_verbose \
no_xtrace
#-- Shell Emulation --------------------------------------------
setopt \
NO_appendcreate \
no_bashrematch \
NO_bsdecho \
no_continueonerror \
NO_cshjunkiehistory \
NO_cshjunkieloops \
NO_cshjunkiequotes \
NO_cshnullcmd \
NO_ksharrays \
NO_kshautoload \
NO_kshoptionprint \
no_kshtypeset \
no_kshzerosubscript \
NO_posixaliases \
no_posixargzero \
NO_posixbuiltins \
NO_posixidentifiers \
NO_posixstrings \
NO_posixtraps \
NO_shfileexpansion \
NO_shnullcmd \
NO_shoptionletters \
NO_shwordsplit \
no_trapsasync
#-- Zle --------------------------------------------------------
setopt \
BEEP \
no_combiningchars \
no_overstrike \
NO_singlelinezle
#-- Aliases ----------------------------------------------------
alias \
ll="/bin/ls -aFGHhlOw"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment