diff options
| -rwxr-xr-x | install.sh | 9 | ||||
| -rw-r--r-- | zsh/aliases | 5 | ||||
| -rw-r--r-- | zsh/completion | 16 | ||||
| -rw-r--r-- | zsh/prompt | 17 | ||||
| -rw-r--r-- | zsh/zprofile | 3 | ||||
| -rw-r--r-- | zsh/zshenv | 9 | ||||
| -rw-r--r-- | zsh/zshenv.home | 7 | ||||
| -rw-r--r-- | zsh/zshrc | 43 |
8 files changed, 53 insertions, 56 deletions
| @@ -42,13 +42,12 @@ cp -R ncmpcpp "$CONFIG" | |||
| 42 | cp taskwarrior/taskrc "$CONFIG/task/taskrc" | 42 | cp taskwarrior/taskrc "$CONFIG/task/taskrc" |
| 43 | 43 | ||
| 44 | # zsh | 44 | # zsh |
| 45 | cp zsh/zshenv ~/.zshenv | 45 | link "$SCRIPT_DIR/zsh/zshenv.home" "$HOME/.zshenv" |
| 46 | 46 | ||
| 47 | mkdir -p "$CONFIG/zsh" | 47 | mkdir -p "$CONFIG/zsh" |
| 48 | cp zsh/zshrc "$CONFIG/zsh/.zshrc" | 48 | link "$SCRIPT_DIR/zsh/zshrc" "$CONFIG/zsh/.zshrc" |
| 49 | cp zsh/aliases "$CONFIG/zsh/aliases" | 49 | link "$SCRIPT_DIR/zsh/zshenv" "$CONFIG/zsh/.zshenv" |
| 50 | cp zsh/prompt "$CONFIG/zsh/prompt" | 50 | link "$SCRIPT_DIR/zsh/zprofile" "$CONFIG/zsh/.zprofile" |
| 51 | cp zsh/completion "$CONFIG/zsh/completion" | ||
| 52 | 51 | ||
| 53 | # git | 52 | # git |
| 54 | cp git/gitconfig ~/.gitconfig | 53 | cp git/gitconfig ~/.gitconfig |
diff --git a/zsh/aliases b/zsh/aliases deleted file mode 100644 index 7d56736..0000000 --- a/zsh/aliases +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | # vim: filetype=zsh | ||
| 2 | |||
| 3 | alias mc='mc -u' | ||
| 4 | alias gdb='gdb -q' | ||
| 5 | alias pwgen='pwgen -s 48 1' | ||
diff --git a/zsh/completion b/zsh/completion deleted file mode 100644 index ce676bb..0000000 --- a/zsh/completion +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | # vim: filetype=zsh | ||
| 2 | |||
| 3 | # Command completion | ||
| 4 | autoload -U compinit; compinit | ||
| 5 | _comp_options+=(globdots) # With hidden files | ||
| 6 | |||
| 7 | zstyle ':completion:*' completer _extensions _complete _approximate | ||
| 8 | |||
| 9 | zstyle ':completion:*' menu select | ||
| 10 | |||
| 11 | zstyle ':completion:*:*:*:*:descriptions' format '%F{green}-- %d --%f' | ||
| 12 | zstyle ':completion:*:*:*:*:corrections' format '%F{yellow}!- %d (errors: %e) -!%f' | ||
| 13 | zstyle ':completion:*:*:*:*:messages' format ' %F{purple} -- %d --%f' | ||
| 14 | zstyle ':completion:*:*:*:*:warnings' format ' %F{red}-- no matches found --%f' | ||
| 15 | zstyle ':completion:*' group-name '' | ||
| 16 | |||
diff --git a/zsh/prompt b/zsh/prompt deleted file mode 100644 index f567bbe..0000000 --- a/zsh/prompt +++ /dev/null | |||
| @@ -1,17 +0,0 @@ | |||
| 1 | # vim: filetype=zsh | ||
| 2 | |||
| 3 | autoload -Uz vcs_info | ||
| 4 | precmd_vcs_info() { vcs_info } | ||
| 5 | precmd_functions+=( precmd_vcs_info ) | ||
| 6 | setopt prompt_subst | ||
| 7 | |||
| 8 | RPROMPT=\$vcs_info_msg_0_ | ||
| 9 | PROMPT=$'[%F{green}%8>..>%n%>>%F{white}@%F{green}%8>..>%m%>>%F{white}] %F{white}%(4~|.../%3~|%~) %B%F{blue}>%f%b ' | ||
| 10 | |||
| 11 | zstyle ':vcs_info:*' unstagedstr ' *' | ||
| 12 | zstyle ':vcs_info:*' stagedstr ' +' | ||
| 13 | zstyle ':vcs_info:*' check-for-changes true | ||
| 14 | zstyle ':vcs_info:*' actionformats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%a%u%c%F{3}|%F{1}%a%F{5}]%f' | ||
| 15 | zstyle ':vcs_info:*' formats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%u%c%F{5}]%f' | ||
| 16 | zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' | ||
| 17 | |||
diff --git a/zsh/zprofile b/zsh/zprofile new file mode 100644 index 0000000..34d71c1 --- /dev/null +++ b/zsh/zprofile | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # vim: filetype=zsh | ||
| 2 | |||
| 3 | [[ -d "${HISTFILE:h}" ]] || mkdir -p "${HISTFILE:h}" | ||
| @@ -1,15 +1,11 @@ | |||
| 1 | export XDG_CONFIG_HOME="$HOME/.config" | 1 | # vim: filetype=zsh |
| 2 | export XDG_DATA_HOME="$HOME/.local/share" | ||
| 3 | export XDG_CACHE_HOME="$HOME/.cache" | ||
| 4 | 2 | ||
| 5 | export EDITOR="nvim" | 3 | export EDITOR="nvim" |
| 6 | export VISUAL="nvim" | 4 | export VISUAL="nvim" |
| 7 | 5 | ||
| 8 | export ZDOTDIR="$XDG_CONFIG_HOME/zsh" | ||
| 9 | |||
| 10 | export HISTFILE="$XDG_DATA_HOME/zsh/history" | ||
| 11 | export HISTSIZE=10000 | 6 | export HISTSIZE=10000 |
| 12 | export SAVEHIST=10000 | 7 | export SAVEHIST=10000 |
| 8 | export HISTFILE="$XDG_DATA_HOME/zsh/history" | ||
| 13 | 9 | ||
| 14 | HOME_LOCAL="$HOME/.local/bin" | 10 | HOME_LOCAL="$HOME/.local/bin" |
| 15 | HOME_CARGO="$HOME/.cargo/bin" | 11 | HOME_CARGO="$HOME/.cargo/bin" |
| @@ -20,6 +16,7 @@ export MANPATH="${MANPATH-$(manpath)}:$NPM_PACKAGES/share/man:$HOME/.local/texli | |||
| 20 | export INFOPATH="$INFOPATH:$HOME/.local/texlive/texmf-dist/info" | 16 | export INFOPATH="$INFOPATH:$HOME/.local/texlive/texmf-dist/info" |
| 21 | 17 | ||
| 22 | # Fix Midnight Commander ESC Taste | 18 | # Fix Midnight Commander ESC Taste |
| 19 | # zusätzlich noch unter "F9 -> Optionen -> Konfiguration -> Escape Tastenmodus -> [x] Einzelner Tastendruck" aktivieren | ||
| 23 | export KEYBOARD_KEY_TIMEOUT_US=1000 | 20 | export KEYBOARD_KEY_TIMEOUT_US=1000 |
| 24 | 21 | ||
| 25 | # Tmuxp | 22 | # Tmuxp |
diff --git a/zsh/zshenv.home b/zsh/zshenv.home new file mode 100644 index 0000000..47f9687 --- /dev/null +++ b/zsh/zshenv.home | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # vim: filetype=zsh | ||
| 2 | |||
| 3 | export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}" | ||
| 4 | export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}" | ||
| 5 | export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" | ||
| 6 | |||
| 7 | export ZDOTDIR="$XDG_CONFIG_HOME/zsh" | ||
| @@ -1,5 +1,4 @@ | |||
| 1 | # Aliase | 1 | # vim: filetype=zsh |
| 2 | source $XDG_CONFIG_HOME/zsh/aliases | ||
| 3 | 2 | ||
| 4 | # Optionen | 3 | # Optionen |
| 5 | setopt AUTO_PARAM_SLASH | 4 | setopt AUTO_PARAM_SLASH |
| @@ -8,15 +7,11 @@ setopt HIST_SAVE_NO_DUPS | |||
| 8 | 7 | ||
| 9 | [[ ! -r /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]] || source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | 8 | [[ ! -r /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]] || source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh |
| 10 | [[ ! -r /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]] || source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh | 9 | [[ ! -r /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]] || source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh |
| 11 | [[ ! -r ~/.opam/opam-init/init.zsh ]] || source ~/.opam/opam-init/init.zsh | 10 | [[ ! -r "$HOME/.opam/opam-init/init.zsh" ]] || source "$HOME/.opam/opam-init/init.zsh" |
| 12 | 11 | ||
| 13 | bindkey -v | 12 | bindkey -v |
| 14 | export KEYTIMEOUT=1 | 13 | export KEYTIMEOUT=1 |
| 15 | 14 | ||
| 16 | fpath=($XDG_CONFIG_HOME/zsh $fpath) | ||
| 17 | autoload -Uz prompt; prompt | ||
| 18 | autoload -Uz completion; completion | ||
| 19 | |||
| 20 | # Keybindings | 15 | # Keybindings |
| 21 | zmodload zsh/complist | 16 | zmodload zsh/complist |
| 22 | bindkey -M menuselect 'h' vi-backward-char | 17 | bindkey -M menuselect 'h' vi-backward-char |
| @@ -36,3 +31,37 @@ bindkey -M visual S add-surround | |||
| 36 | bindkey '^A' vi-beginning-of-line | 31 | bindkey '^A' vi-beginning-of-line |
| 37 | bindkey '^E' vi-end-of-line | 32 | bindkey '^E' vi-end-of-line |
| 38 | 33 | ||
| 34 | # Aliase | ||
| 35 | alias mc='mc -u' | ||
| 36 | alias gdb='gdb -q' | ||
| 37 | alias pwgen='pwgen -s 48 1' | ||
| 38 | |||
| 39 | # Command completion | ||
| 40 | autoload -U compinit; compinit | ||
| 41 | _comp_options+=(globdots) # With hidden files | ||
| 42 | |||
| 43 | zstyle ':completion:*' completer _extensions _complete _approximate | ||
| 44 | |||
| 45 | zstyle ':completion:*' menu select | ||
| 46 | |||
| 47 | zstyle ':completion:*:*:*:*:descriptions' format '%F{green}-- %d --%f' | ||
| 48 | zstyle ':completion:*:*:*:*:corrections' format '%F{yellow}!- %d (errors: %e) -!%f' | ||
| 49 | zstyle ':completion:*:*:*:*:messages' format ' %F{purple} -- %d --%f' | ||
| 50 | zstyle ':completion:*:*:*:*:warnings' format ' %F{red}-- no matches found --%f' | ||
| 51 | zstyle ':completion:*' group-name '' | ||
| 52 | |||
| 53 | # Prompt | ||
| 54 | autoload -Uz vcs_info | ||
| 55 | precmd_vcs_info() { vcs_info } | ||
| 56 | precmd_functions+=( precmd_vcs_info ) | ||
| 57 | setopt prompt_subst | ||
| 58 | |||
| 59 | RPROMPT=\$vcs_info_msg_0_ | ||
| 60 | PROMPT=$'[%F{green}%8>..>%n%>>%F{white}@%F{green}%8>..>%m%>>%F{white}] %F{white}%(4~|.../%3~|%~) %B%F{blue}>%f%b ' | ||
| 61 | |||
| 62 | zstyle ':vcs_info:*' unstagedstr ' *' | ||
| 63 | zstyle ':vcs_info:*' stagedstr ' +' | ||
| 64 | zstyle ':vcs_info:*' check-for-changes true | ||
| 65 | zstyle ':vcs_info:*' actionformats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%a%u%c%F{3}|%F{1}%a%F{5}]%f' | ||
| 66 | zstyle ':vcs_info:*' formats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%u%c%F{5}]%f' | ||
| 67 | zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' | ||
