summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhsn <mail@mhsn.net>2025-04-23 09:47:32 +0000
committermhsn <mail@mhsn.net>2025-07-08 10:54:42 +0100
commit09d7ae6bc463cb1229146256849e642cc931a3f4 (patch)
tree43adfe5dfb611cd85561b5429c1dfe3b5caa81fd
parentbfb97225fa59557dc701723173f684dbf2251cf2 (diff)
downloaddotfiles-09d7ae6bc463cb1229146256849e642cc931a3f4.tar.gz
dotfiles-09d7ae6bc463cb1229146256849e642cc931a3f4.zip
remove .zshrc
-rw-r--r--.zshrc68
1 files changed, 0 insertions, 68 deletions
diff --git a/.zshrc b/.zshrc
deleted file mode 100644
index b3aade8..0000000
--- a/.zshrc
+++ /dev/null
@@ -1,68 +0,0 @@
-# [name@machine ~/some/dir]$ for non-root
-# [machine ~/some/dir]# for root (but in red)
-# Also includes error code between ]$
-PS1="%B%(!.%F{red}.%F{cyan})[%(!..%F{green}%n%F{cyan}@%F{magenta})%M %(!.%F{default}.%F{green})%~%(!.%F{red}.%F{cyan})]%(?.. %F{red}%? )%f%b%(!.#.$) "
-
-# Some coloured commands
-alias ls='ls --color=auto'
-alias grep='grep --color=auto'
-
-# History
-HISTSIZE=10000
-HISTFILE=~/.history
-SAVEHIST=$HISTSIZE
-setopt hist_ignore_space
-
-# Autocompletion and tabcompletion
-autoload -U compinit
-zstyle ':completion:*' menu select
-zmodload zsh/complist
-compinit
-_comp_options+=(globdots)
-
-# vi mode
-bindkey -v
-export KEYTIMEOUT=1
-
-# Use vim keys in tab completion menu
-bindkey -M menuselect 'h' vi-backward-char
-bindkey -M menuselect 'k' vi-up-line-or-history
-bindkey -M menuselect 'l' vi-forward-char
-bindkey -M menuselect 'j' vi-down-line-or-history
-
-# Change cursor shape for different vi modes.
-function zle-keymap-select {
- if [[ ${KEYMAP} == vicmd ]] ||
- [[ $1 = 'block' ]]; then
- echo -ne '\e[1 q'
- elif [[ ${KEYMAP} == main ]] ||
- [[ ${KEYMAP} == viins ]] ||
- [[ ${KEYMAP} = '' ]] ||
- [[ $1 = 'beam' ]]; then
- echo -ne '\e[5 q'
- fi
-}
-
-zle -N zle-keymap-select
-zle-line-init() {
- zle -K viins
- echo -ne "\e[5 q"
-}
-zle -N zle-line-init
-echo -ne '\e[5 q'
-
-preexec() { echo -ne '\e[5 q' ;}
-
-# Bind Ctrl-R to reverse history search
-bindkey '^R' history-incremental-search-backward
-# Bind Delete to delete
-bindkey '^[[3~' backward-delete-char
-# Bind Ctrl-Left, Ctrl-Right to noob navigation
-bindkey '^[[1;5C' forward-word
-bindkey '^[[1;5D' backward-word
-bindkey -M vicmd '^[[1;5C' forward-word
-bindkey -M vicmd '^[[1;5D' backward-word
-
-# Syntax highlighting plugin
-source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh
-