aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-10-29 09:55:50 +0200
committerGravatar Tom Willemse2016-10-29 09:55:50 +0200
commitbf4fa1fd5953c97ea93311c68673bc7ecee1020c (patch)
tree8c65aa501e9ed132b4ad9a880cce48e742c73c28
parent5d5a506f35417c8c71900003c1d7400af5099b9b (diff)
downloadnew-dotfiles-bf4fa1fd5953c97ea93311c68673bc7ecee1020c.tar.gz
new-dotfiles-bf4fa1fd5953c97ea93311c68673bc7ecee1020c.zip
Add sections to ZSH config
-rw-r--r--zsh/zshrc.org114
1 files changed, 61 insertions, 53 deletions
diff --git a/zsh/zshrc.org b/zsh/zshrc.org
index 2207ead..919de03 100644
--- a/zsh/zshrc.org
+++ b/zsh/zshrc.org
@@ -7,75 +7,83 @@ Autoload any ZSH function from =$HOME/.zsh/functions=.
autoload -U $HOME/.zsh/functions/*(:t)
#+END_SRC
-Use rlwrap on some less-than-pleasant REPLs that don't have GNU
-Readline-like features themselves.
+* Aliases
-#+BEGIN_SRC sh
- alias csi="rlwrap csi"
- alias scsh="rlwrap scsh"
-#+END_SRC
+ Use rlwrap on some less-than-pleasant REPLs that don't have GNU
+ Readline-like features themselves.
-Load zplug, a next generation zsh plugin manager.
+ #+BEGIN_SRC sh
+ alias csi="rlwrap csi"
+ alias scsh="rlwrap scsh"
+ #+END_SRC
-#+BEGIN_SRC sh
- source /usr/share/zsh/scripts/zplug/init.zsh
-#+END_SRC
+* Plug-ins
-Add zsh-syntax-highlighting.
+ Load zplug, a next generation zsh plugin manager.
-#+BEGIN_SRC sh
- zplug "zsh-users/zsh-syntax-highlighting", nice:10
-#+END_SRC
+ #+BEGIN_SRC sh
+ source /usr/share/zsh/scripts/zplug/init.zsh
+ #+END_SRC
-Add zsh-autosuggestions.
+ Add zsh-syntax-highlighting.
-#+BEGIN_SRC sh
- zplug "zsh-users/zsh-autosuggestions"
-#+END_SRC
+ #+BEGIN_SRC sh
+ zplug "zsh-users/zsh-syntax-highlighting", nice:10
+ #+END_SRC
-Add bgnotify from oh-my-zsh to show when long-running commands finish.
+ Add zsh-autosuggestions.
-#+BEGIN_SRC sh
- zplug "plugins/bgnotify", from:oh-my-zsh
-#+END_SRC
+ #+BEGIN_SRC sh
+ zplug "zsh-users/zsh-autosuggestions"
+ #+END_SRC
-Make sure all plugins are installed.
+ Add bgnotify from oh-my-zsh to show when long-running commands finish.
-#+BEGIN_SRC sh
- if ! zplug check --verbose; then
- printf "Install? [y/N]: "
- if read -q; then
- echo; zplug install
- fi
- fi
-#+END_SRC
+ #+BEGIN_SRC sh
+ zplug "plugins/bgnotify", from:oh-my-zsh
+ #+END_SRC
-Load all plugins.
+ Make sure all plugins are installed.
-#+BEGIN_SRC sh
- zplug load --verbose
-#+END_SRC
+ #+BEGIN_SRC sh
+ if ! zplug check --verbose; then
+ printf "Install? [y/N]: "
+ if read -q; then
+ echo; zplug install
+ fi
+ fi
+ #+END_SRC
-Make some widgets for interacting with the clipboard.
+ Load all plugins.
-#+BEGIN_SRC sh
- zle -N x-copy-region-as-kill
- zle -N x-kill-region
- zle -N x-yank
-#+END_SRC
+ #+BEGIN_SRC sh
+ zplug load --verbose
+ #+END_SRC
-Bind them to keyboard shortcuts.
+* X Interaction
-#+BEGIN_SRC sh
- bindkey -e '^[w' x-copy-region-as-kill
- bindkey -e '^W' x-kill-region
- bindkey -e '^Y' x-yank
-#+END_SRC
+ Make some widgets for interacting with the clipboard.
-Initialize completion. This triggers loading of
-zsh-syntax-highlighting as well.
+ #+BEGIN_SRC sh
+ zle -N x-copy-region-as-kill
+ zle -N x-kill-region
+ zle -N x-yank
+ #+END_SRC
-#+BEGIN_SRC sh
-autoload -Uz compinit
-compinit
-#+END_SRC
+ Bind them to keyboard shortcuts.
+
+ #+BEGIN_SRC sh
+ bindkey -e '^[w' x-copy-region-as-kill
+ bindkey -e '^W' x-kill-region
+ bindkey -e '^Y' x-yank
+ #+END_SRC
+
+* Completion
+
+ Initialize completion. This triggers loading of
+ zsh-syntax-highlighting as well.
+
+ #+BEGIN_SRC sh
+ autoload -Uz compinit
+ compinit
+ #+END_SRC