diff options
author | Matt Turner <mattst88@gmail.com> | 2023-09-18 14:31:28 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2023-09-18 14:31:28 -0400 |
commit | 6b515973dd3801f7d044f09281c2a7ab4ef011e3 (patch) | |
tree | 677b8be76185a9928eb1ce4785300667aae8f0d7 /zsh | |
parent | 1326c37547faf480fe6aeef28729f5a64cead032 (diff) |
zsh: Use oh-my-zsh
Diffstat (limited to 'zsh')
-rwxr-xr-x[-rw-r--r--] | zsh/.zshrc | 60 |
1 files changed, 15 insertions, 45 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc index bdeb4f7..c7935e5 100644..100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,19 +1,22 @@ #!/bin/zsh -autoload -U compinit -compinit - -zstyle ':completion:*:descriptions' format '%U%B%d%b%u' -zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b' - -unsetopt correctall -unsetopt equals - -autoload -U promptinit -promptinit +export ZSH="$HOME/.oh-my-zsh" + +ZSH_THEME="gentoo" + +plugins=( + autojump + colored-man-pages + fzf + git + mosh + pass + ripgrep +) -prompt gentoo +source $ZSH/oh-my-zsh.sh +export EDITOR=nvim export HISTSIZE=5000 export HISTFILE="$HOME/.history" export SAVEHIST=$HISTSIZE @@ -21,29 +24,6 @@ setopt hist_ignore_all_dups setopt hist_ignore_space setopt share_history -# Breaks "eix ^asdf" -# setopt extendedglob - -bindkey "^[[H" beginning-of-line -bindkey "^[[1~" beginning-of-line -bindkey "^[OH" beginning-of-line -bindkey "^[[F" end-of-line -bindkey "^[[4~" end-of-line -bindkey "^[OF" end-of-line -bindkey ' ' magic-space # also do history expansion on space -bindkey '^R' history-incremental-search-backward - -bindkey "^[[1;5C" forward-word -bindkey "^[[1;5D" backward-word - -bindkey '^[[Z' reverse-menu-complete - -# Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~ -bindkey '^?' backward-delete-char -bindkey "^[[3~" delete-char -bindkey "^[3;5~" delete-char -bindkey "\e[3~" delete-char - export PATH=:$PATH:~/bin alias pkgdiff="pkgdiff-mg" @@ -56,13 +36,3 @@ if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" fi export GPG_TTY=$(tty) - -FILES=( - /etc/profile.d/autojump.sh - /etc/profile.d/vte-2.91.sh - /usr/share/fzf/key-bindings.zsh -) - -for file in "${FILES[@]}"; do - [[ -e $file ]] && . "${file}" -done |