GRMLZSHRC(5) GRMLZSHRC(5) (NAME) grmlzshrc - zsh Grml (SYNOPSIS) zsh []... (DESCRIPTION) Grml ( grmlzshrc ) zsh . . . grmlzshrc 5.1 zsh . grmlzshrc . (EUID == 0) . GRML_ALWAYS_LOAD_ALL ( ). ( ) ~/.zshrc . zshrc grmlzshrc ( ) : echo setopt no_global_rcs >> ~/.zshenv zshenv . (STARTUP VARIABLES) grmlzshrc . zsh : % GRML_DISPLAY_BATTERY=1 zsh zshrc.pre ( ). BATTERY . GRML_DISPLAY_BATTERY . COMMAND_NOT_FOUND . GRML_ZSH_CNF_HANDLER ( ). GRML_COMP_CACHING yes () zsh $GRML_COMP_CACHE_DIR . GRML_COMP_CACHE_DIR zsh $GRML_COMP_CACHING . : ${ZDOTDIR:-$HOME}/.cache . . GRML_DISPLAY_BATTERY grmlzshrc . : GNU/Linux FreeBSD OpenBSD Darwin. GRML_ZSH_CNF_HANDLER COMMAND_NOT_FOUND ( ) "/usr/share/command-not-found/command-not-found" . GRML_NO_APT_ALIASES apt ag agi ati ... . GRML_NO_SMALL_ALIASES da . ls ll la ls GRML_NO_APT_ALIASES . GRMLSMALL_SPECIFIC zsh grml-small . HISTFILE zsh. : ${HOME}/.zsh_history. HISTSIZE . : 5000. MAILCHECK zsh . : 30. . NOCOR . NOETCHOSTS "/etc/hosts" . NOMENU () . NOPRECMD precmd preexec . ( xterm/screen ). REPORTTIME ( ) (: 5). SAVEHIST ${HISTFILE} . : 10000. watch tcsh(1) / "log" . zshparam(1) . : (notme root). ZSH_NO_DEFAULT_LOCALE () "/etc/default/locale" . ZSH_PROFILE_RC . zprof ( zshmodules(1) ). COMPDUMPFILE . : $HOME/.zcompdump. GRML-ZSHRC (GRML-ZSHRC SPECIFIC STYLES) (Styles) zsh . (VCS) . . zshrc . ( ) . . . : :grml:completion:compinit compinit zshrc zsh . arguments compinit . . -i compinit compaudit . zstyle ':grml:completion:compinit' arguments -i compaudit . zshrc compinit . ~/.zshrc.pre ( ). (FEATURE DESCRIPTION) grmlzshrc . (dirstack handling) grmlzshrc . zsh . DIRSTACKFILE ~/.zdirs . DIRSTACKSIZE 20 . DIRSTACKFILE zsh zsh DIRSTACKFILE . enable false ( true ): zstyle ':grml:chpwd:dirstack' enable false . : . ':grml:chpwd:dirstack' . filter . ( "0") . : function my_dirstack_filter() { [[ $1 == /tmp(|/*) ]] } zstyle ':grml:chpwd:dirstack' filter my_dirstack_filter exclude . . . : zstyle ':grml:chpwd:dirstack' exclude "/tmp(|/*)" "$HOME/tmp(|/*)" . . filter-on-load ( false ): zstyle ':grml:chpwd:dirstack' filter-on-load true filter-on-load enable ".zshrc.pre" ! . filter-on-load : ".zshrc.pre" ".zshrc.local" . (Directory-based Profiles) . (Initialisation) `chpwd_profiles' `zshrc.local' . . `chpwd_profiles' ( ) "chpwd_profiles_init" . `chpwd_profiles' . `chpwd_profiles' ( ) `$CHPWD_PROFILES_INIT' `1' . . (Styles and Profile-names) ( zsh) : zstyle ':chpwd:profiles:/usr/src/grml(|/|/*)' profile grml zstyle ':chpwd:profiles:/usr/src/debian(|/|/*)' profile debian chpwd_profile_grml ( ) . ( ) 'default' chpwd_profile_default . ( ':chpwd:profiles:*' zstyle): ${PWD} . /foo/bar(|/|/*) ${PWD} : /foo/bar /foo/bar/ /foo/bar/baz /foo/bar (|/|/*) . 'profile' . (Controlling Profile Execution) $CHPWD_PROFILE ( "default" ). : function chpwd_profile_grml() { [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 ... } `re-execute' `false' ( `true' ): zstyle ':chpwd:profiles:*' re-execute false / (Signaling availabily/profile changes) . : ) zsh : (( ${+functions[chpwd_profiles]} )) && print "directory profiles active" ) : function chpwd_profile_myprofilename() { [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 print "chpwd(): Switching to profile: $profile" ... } . ( `re-execute' ). (Leaving Profiles) "chpwd_leave_profile_()" . Accept-Line (Accept-Line wrapper) accept-line Enter/Return . grmlzshrc . . : zstyle 'context' style value 'acceptline' . ':acceptline:' . : default normal force misc empty. (Recognized Contexts) default . compwarnfmt rehash . normal . force _completion Enter . empty . misc ( ) . (Available Styles) nocompwarn true (: false). compwarnfmt _completion (: '%c will not execute and completion %f exists.'). '%c' '%f' . rehash ( grmlzshrc true ). actions . . . default_action 'actions' . '.accept-line' ( accept-line ). call_default true 'default_action' ( true ). (Prompt) grmlzshrc promptinit zsh . grml grml-large grml-chroot . grml $GRMLPROMPT grml-large . $GRML_CHROOT grml-chroot . promptinit prompt : prompt grml-large grml-large . . grml : prompt -h grml . 4.3.7 . grml . : $PS1 ( $PROMPT) `precmd()' zsh zsh . : # : prompt off # : PS1='%~ %# ' `grml_theme_add_token()' . . GNU screen (GNU screen Status) grmlzshrc hardstatus screen 'zsh' . screen vcs_info zsh 'zsh: ' . (Persistent History) $GRML_IMPORTANT_COMMANDS ( ~/.important_commands ) . (REFERENCE) (Environment Variables) grmlzshrc . COLORTERM "yes" . . EDITOR . vim(1) vi(1) . LESS_TERMCAP_* less(1) (man) . termcap(5) . MAIL /var/mail/$USER . PAGER less(1) (pager) . (Options) zsh grmlzshrc zsh . Z-shell . zsh (csh ksh sh zsh) . zshoptions(1) . append_history zsh grmlzshrc . zsh . 20 $SAVEHIST . auto_cd cd . auto_pushd cd (directory stack) . completeinword . extended_glob '#' '~' '^' (globbing) . extended_history ( ) ( ) . hash_list_all . . histignorespace . . longlistjobs (jobs) . nobeep zsh (zle) . noglobdots (wildcard) '.' . nohup (HUP:1) . nonomatch . `~' `=' . notify . pushd_ignore_dups . share_history . ! "history" . zsh >= 4 . (Keybindings) zsh grmlzshrc . ESC-e ALT-e . ESC-e . ESC-v '/' . CTRL-x-1 . CTRL-x-M() . ctrl-@ . : "mv abc ~/testa/testb/testc/" -> CTRL-xM . CTRL-x-p . CTRL-x-z zsh. . CTRL-z CTRL-z . (Customisation) bindkey zsh . `zle-line-init' `zle-line-finish' : o zle-line-init: zle-smkx o zle-line-finish: zle-rmkx grmlzshrc . zsh (zle) . terminfo . (Shell Functions) grmlzshrc . accessed() N . N . N 1 . any() . bk() . . . cdt() mktemp . /tmp/PREFIX.XXXXXXX . changed() N . N . N 1 . check_com() (true) . -c true . cl() "." . dchange() (changelog) $PAGER . dcopyright() (copyright) $PAGER . debian2hd() grml- debootstrap . deswap() $LINUX- KERNELSOURCE/Documentation/power/swsusp.txt. swap (suspend) . dnews() NEWS $PAGER . dreadme() README $PAGER . edalias() (alias) . edfunc() . freload() (autoloadable) ( autoload zshbuiltins(1) ). grml_status_features() . . . : "-h" "--help" "" "-" "+-" . . "+-" . grml_vcs_info_toggle_colour() vcs_info. vcs_info ( `clint` %v `$vcs_into_msg_0_` ). vcs_info ( ) . hgdi() GNU diff -ubwd (Mercurial). hgstat() (diffstat) (tip) ( ). hidiff() diff highstring(1) . isdarwin() (Darwin/macOS) true false . isfreebsd() FreeBSD true false . isgrml() true false . isgrmlcd() (Live CD) true false . isgrmlsmall() grml-small true false . islinux() true false . isopenbsd() OpenBSD true false . isutfenv() UTF true false . mkcd() ( ) . modified() N . N . N 1 . nt() "e" . : % NTREF=/reference/file % ls -l *(e:nt:) % # : % ls -l *(e:'nt /reference/file':) profile() zsh ( ZSH_PROFILE_RC ). salias() $EUID sudo . "salias -h" . simple-extract() / . (URI) https http ftp simple-extract . . simple-extract ( .gz .bz2 .xz) '-d' . sll() . ssl-cert-fingerprints SHA512 SHA256 SHA1 MD5 x509 . . (pipe) /dev/stdin . ssl-cert-info x509 SHA512 SHA256 SHA1 MD5 . . /dev/stdin . ssl-cert-sha512(), ssl-cert-sha256(), ssl-cert-sha1(), ssl-cert-md5() (SHA512 SHA256 SHA1 MD5) x509 . . /dev/stdin . Start(), Restart(), Stop(), Force-Reload(), Reload() . : % Restart ssh trans() (-D) (-E) . uchange() (upstream changelog) $PAGER . vim() vim(1). VIM_OPTIONS vim . .zshrc.local . whatwhen() . . (: -100). xcat() () cat(1) . true . xsource() () (source) . true . source zshbuiltins(1) . xtrename() xterm screen(1) . . zrcautoload() autoload. . $fpath . zrclocal() /etc/zsh/zshrc.local ${HOME}/.zshrc.local . . zshbuiltins(1) source . (Aliases) grmlzshrc . ( grep ls) --color=auto . GNU . acp (apt-cache policy) . . acs (apt search) . . . acsh (apt show) . adg (apt dist-upgrade) . . ( ) dist-upgrade sudo . ag (apt upgrade) . . . (au ) sudo . agi (apt install) . (-) . (+) . apt . (=) . (/) (stable testing unstable) . sudo . ati (aptitude install) aptitude apt sudo . au (apt update) . /etc/apt/sources.list . upgrade dist-upgrade sudo . afs (apt-file search) apt-file APT . . da (du -sch) . dbp (dpkg-buildpackage) ( : dpkg-buildpackage(1)). debs-by-size (grep-status -FStatus -sInstalled-Size,Package -n "install ok installed" | paste -sd " \n" | sort -rn) () . dir (ls -lSrah) ( ) ( ) . ge (grep-excuses) excuses (testing) ( : grep- excuses(1)). grep (grep --color=auto) grep . grml-version (cat /etc/grml_version) . insecscp (scp -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null") scp . . . insecssh (ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null") ssh ( insecscp ). help-zshglob (H-Glob()) H-Glob() (wildcards) . l (ls -l --color=auto) . . la (ls -la --color=auto) "." . lad (ls -d .*(/)) ( ) . lh (ls -hAl --color=auto) . "." "..". ll (ls -l --color=auto) . llog ($PAGER /var/log/syslog) syslog . ls (ls -C --color=auto) . . lsa (ls -a .*(.)) (dot files) . lsbig (ls -flh *(.OL[1,10])) ( ). lsd (ls -d *(/)) . lse (ls -d *(/^F)) . lsl (ls -l *(@)) . lsnew (ls -rl *(D.om[1,10])) ( ). lsnewdir (ls -rthdl *(/om[1,10]) .*(D/om[1,10])) . lsold (ls -rtlh *(D.om[1,10])) ( ). lsolddir (ls -rthdl *(/Om[1,10]) .*(D/Om[1,10])) . lss (ls -l *(s,S,t)) setuid setgid sticky bit . lssmall (ls -Srl *(.oL[1,10])) ( ). lsw (ls -ld *(R,W,X.^ND/)) / / ( ). lsx (ls -l *(*)) . mdstat (cat /proc/mdstat) md ( ) . mq (hg -R $(readlink -f $(hg root)/.hg/patches)) . rmcdir ('cd ..; rmdir $OLDPWD || cd $OLDPWD) rmdir. screen (screen -c file) $HOME/.screenrc screen /etc/grml/screenrc . screen /etc/grml/screenrc_v4 . su (sudo su) (root) . tlog (tail --follow=name /var/log/syslog) syslog ( tail(1)). up (aptitude update ; aptitude safe-upgrade) aptitude sudo . au ag . url-quote (autoload -U url-quote-magic ; zle -N self-insert url-quote-magic) (URLs) . $(uname -r)-reboot (kexec -l --initrd=/boot/initrd.img-"$(uname -r)" --command-line=\"$(cat /proc/cmdline)\" /boot/vmlinuz-"$(uname -r)") kexec(8) BIOS/firmware . ... (cd ../../) . (AUXILIARY FILES) grmlzshrc . .zshrc.pre grmlzshrc (source) . grmlzshrc ( ): # RPROMPT GRML_DISPLAY_BATTERY=1 # GRML_ALWAYS_LOAD_ALL=1 .zshrc.local grmlzshrc . (/etc/zsh/zshrc.local) . .zdirs ( ). .important_commands ( ). (INSTALLATION ON NON-DEBIAN SYSTEMS) ( ) - ( ) - grmlzshrc deb. . : % wget -O .zshrc http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc ( $fpath ) : ZSH (ZSH-REFCARD TAGS) grmlzshrc . . zsh (zsh- refcard) . ( ) . : ( ) : #a# grml- zsh-refcard . ( : @@INSERT-aliases@@) #f# . ( : @@INSERT-functions@@) #v# . ( : @@INSERT- variables@@) #k# . ( : @@INSERT-keybindings@@) #d# : start: 'hash -d' . end: . ( : @@INSERT-hasheddirs@@) #A# : start: . end: . '#d .*' . ( : @@INSERT-abbrev@@) #m# (parse) . : #m# k ESC-h Call the run-help function 'ESC-h' . : #m#
#o# 'other' . . . ( : @@INSERT-other-foobar@@) ( m o) : #
#
@secmap 'genrefcard.pl' . . zsh . : 0 default () 1 system () 2 user () 3 debian () 4 search () 5 shortcuts () 6 services () 'functions' 'system' : #f1# Edit an alias via zle edalias() { @@INSERT- aliases-system@@ 'grml-zsh-refcard.tex.in' . 'default' . 'grml-zsh-refcard.tex.in' @@INSERT-aliases@@ @@INSERT-aliases-default@@ . @@INSERT-aliases-all@@ . (CONTRIBUTING) zsh grml-etc-core git.grml.org : % git clone git://git.grml.org/grml-etc-core.git 'git format-patch' 'git send-email' : grml-etc-core@grml.org . (STATUS) grmlzshrc . . . : . (AUTHORS) . (COPYRIGHT) (c) 2009-2025 Grml (GPL) . zshrc GPL v2 accept-line() zsh ( BSD ) . 2026-09-02 GRMLZSHRC(5)