Skip to content

Commit e67dc22

Browse files
committed
zshrc: some further tuning to make grml-gen-zshrefcard output nice
1 parent 47c6a05 commit e67dc22

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

etc/zsh/zshrc

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,15 +1773,15 @@ fi
17731773

17741774
# do we have GNU ls with color-support?
17751775
if [[ "$TERM" != dumb ]]; then
1776-
#a1# execute \kbd{@a@}:\quad ls with colors
1776+
#a1# List files with colors (\kbd{ls -b -CF \ldots})
17771777
alias ls='ls -b -CF '${ls_options:+"${ls_options[*]}"}
1778-
#a1# execute \kbd{@a@}:\quad list all files, with colors
1778+
#a1# List all files, with colors (\kbd{ls -la \ldots})
17791779
alias la='ls -la '${ls_options:+"${ls_options[*]}"}
1780-
#a1# long colored list, without dotfiles (@a@)
1780+
#a1# List files with long colored list, without dotfiles (\kbd{ls -l \ldots})
17811781
alias ll='ls -l '${ls_options:+"${ls_options[*]}"}
1782-
#a1# long colored list, human readable sizes (@a@)
1782+
#a1# List files with long colored list, human readable sizes (\kbd{ls -hAl \ldots})
17831783
alias lh='ls -hAl '${ls_options:+"${ls_options[*]}"}
1784-
#a1# List files, append qualifier to filenames \\&\quad(\kbd{/} for directories, \kbd{@} for symlinks ...)
1784+
#a1# List files with long colored list, append qualifier to filenames (\kbd{ls -lF \ldots})\\&\quad(\kbd{/} for directories, \kbd{@} for symlinks ...)
17851785
alias l='ls -lF '${ls_options:+"${ls_options[*]}"}
17861786
else
17871787
alias ls='ls -b -CF'
@@ -2365,7 +2365,7 @@ alias help-zshglob=H-Glob
23652365
HELP_LINES_PER_PAGE=20
23662366
#v1# set location of help-zle cache file
23672367
HELP_ZLE_CACHE_FILE=~/.cache/zsh_help_zle_lines.zsh
2368-
#f1# helper function for help-zle, actually generates the help text
2368+
# helper function for help-zle, actually generates the help text
23692369
help_zle_parse_keybindings()
23702370
{
23712371
emulate -L zsh
@@ -2466,7 +2466,7 @@ help_zle_parse_keybindings()
24662466
typeset -g help_zle_sln
24672467
typeset -g -a help_zle_lines
24682468

2469-
#f1# Provides (partially autogenerated) help on keybindings and the zsh line editor
2469+
# Provides (partially autogenerated) help on keybindings and the zsh line editor
24702470
help-zle()
24712471
{
24722472
emulate -L zsh
@@ -2480,8 +2480,8 @@ help-zle()
24802480
help_zle_sln=$((help_zle_sln + HELP_LINES_PER_PAGE))
24812481
zle -M "${(F)help_zle_lines[sln,help_zle_sln-1]}"
24822482
}
2483-
#k# display help for keybindings and ZLE (cycle pages with consecutive use)
2484-
zle -N help-zle && bindkey '^xz' help-zle
2483+
#k# display help for keybindings and ZLE
2484+
zle -N help-zle && bindkey '^xz' help-zle # note: cycle pages with consecutive use of '^xz'
24852485

24862486
# grep for running process, like: 'any vim'
24872487
any() {
@@ -2621,6 +2621,7 @@ alias rmcdir='cd ..; rmdir $OLDPWD || cd $OLDPWD'
26212621

26222622
#a2# ssh with StrictHostKeyChecking=no \\&\quad and UserKnownHostsFile unset
26232623
alias insecssh='ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"'
2624+
#a2# scp with StrictHostKeyChecking=no \\&\quad and UserKnownHostsFile unset
26242625
alias insecscp='scp -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"'
26252626

26262627
# work around non utf8 capable software in utf environment via $LANG and luit

0 commit comments

Comments
 (0)