summaryrefslogtreecommitdiffstats
path: root/.config/zsh
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-18 15:36:51 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-18 15:36:51 +0200
commit0590338bf228cb39beace859647f7650c889f15e (patch)
treea34c7c52cc796d5dbec45f5b08552ea0a3493fb1 /.config/zsh
parentUpdate (diff)
downloaddotfiles-bsd-0590338bf228cb39beace859647f7650c889f15e.tar.gz
dotfiles-bsd-0590338bf228cb39beace859647f7650c889f15e.tar.bz2
dotfiles-bsd-0590338bf228cb39beace859647f7650c889f15e.tar.xz
dotfiles-bsd-0590338bf228cb39beace859647f7650c889f15e.tar.zst
dotfiles-bsd-0590338bf228cb39beace859647f7650c889f15e.zip
ZSH org config update
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/README.org20
1 files changed, 10 insertions, 10 deletions
diff --git a/.config/zsh/README.org b/.config/zsh/README.org
index afcf736..1d385f7 100644
--- a/.config/zsh/README.org
+++ b/.config/zsh/README.org
@@ -11,20 +11,20 @@
- [[#key-bindings][Key bindings]]
- [[#basic-keybindings][Basic keybindings]]
- [[#command-line-edit][Command line edit]]
-- [[#sourcing-alias-and-plugins-files][sourcing alias and plugins files]]
+- [[#sourcing-alias-and-plugins-files][Sourcing alias and plugins files]]
- [[#prompt-variables][Prompt variables]]
* About
This is my ~.zshrc~ org file. Pretty straight forward.
* Colors for the prompt
- #+BEGIN_SRC shell
+ #+BEGIN_SRC zsh
autoload -U colors && colors
#+END_SRC
* History
** Basic
- #+BEGIN_SRC shell
+ #+BEGIN_SRC zsh
HISTSIZE=5000
SAVEHIST=5000
HISTFILE=$XDG_CONFIG_HOME/zsh/history
@@ -34,13 +34,13 @@ zle -N history-beginning-search-forward-end history-search-end
#+END_SRC
** Share history between multiple zsh instances
- #+BEGIN_SRC shell
+ #+BEGIN_SRC zsh
setopt inc_append_history
setopt share_history
#+END_SRC
* Stuff for completions
-#+BEGIN_SRC shell
+#+BEGIN_SRC zsh
autoload -U compinit
zstyle ':completion:*' menu select
zstyle ':completion:*' list-colors 'di=34:ln=35:so=32:pi=33:ex=31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30'
@@ -52,7 +52,7 @@ _comp_options+=(globdots)
* Key bindings
** Basic keybindings
These are my ~zsh~ key bindings, enabling vi mode as well
- #+BEGIN_SRC shell
+ #+BEGIN_SRC zsh
bindkey -v
export KEYTIMEOUT=1
bindkey -M menuselect 'h' vi-backward-char
@@ -70,19 +70,19 @@ bindkey -M vicmd "j" history-beginning-search-forward
** Command line edit
This allows me to edit the current line with ~C-e~
- #+BEGIN_SRC shell
+ #+BEGIN_SRC zsh
autoload edit-command-line && zle -N edit-command-line
bindkey "^e" edit-command-line
#+END_SRC
-* sourcing alias and plugins files
- #+BEGIN_SRC shell
+* Sourcing alias and plugins files
+ #+BEGIN_SRC zsh
[ -f "$XDG_CONFIG_HOME/zsh/alias.zsh" ] && source $ZDOTDIR/alias.zsh
[ -f "$XDG_CONFIG_HOME/zsh/plugins.zsh" ] && source $ZDOTDIR/plugins.zsh
#+END_SRC
* Prompt variables
- #+BEGIN_SRC shell
+ #+BEGIN_SRC zsh
PROMPT="%B%{$fg[red]%}%M %{$fg[blue]%}%c%{$fg[red]%}%%%{$reset_color%} "
RPROMPT="${RPROMPT}"'%{$fg_bold[red]%}%(?..%?)%{$reset_color%} $(gitprompt)'
#+END_SRC