Feat: newsboat in tmux and zsh fixes

This commit is contained in:
Bertrand Benjamin 2021-07-06 20:22:18 +02:00
parent fc091ab734
commit 2f7c7bbb78
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,8 @@
auto-reload yes auto-reload yes
reload-time 30 reload-time 30
browser chromium browser chromium
macro y set browser "mpv %u"; open-in-browser ; set browser chromium macro y set browser "tmux new-window mpv %u"; open-in-browser ; set browser chromium
macro Y set browser "mpv %u"; open-in-browser ; set browser chromium
unbind-key h unbind-key h
unbind-key j unbind-key j

View File

@ -1,7 +1,7 @@
fpath+=$ZDOTDIR/pure fpath+=$ZDOTDIR/pure
autoload -U compinit autoload -U compinit
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' menu select zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' # menu select=2
zmodload zsh/complist zmodload zsh/complist
compinit compinit
_comp_options+=(globdots) # Include hidden files. _comp_options+=(globdots) # Include hidden files.
@ -42,6 +42,8 @@ alias cp='cp -iv'
alias mv='mv -iv' alias mv='mv -iv'
alias rm='rm -i' alias rm='rm -i'
alias newsboat='tmux new -As newsboat newsboat'
# Autosuggestions # Autosuggestions
# git clone https://github.com/zsh-users/zsh-autosuggestions ~/.config/zsh/ # git clone https://github.com/zsh-users/zsh-autosuggestions ~/.config/zsh/
@ -56,6 +58,8 @@ source ~/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# git clone https://github.com/zsh-users/zsh-history-substring-search ~/.config/zsh # git clone https://github.com/zsh-users/zsh-history-substring-search ~/.config/zsh
source ~/.config/zsh/zsh-history-substring-search/zsh-history-substring-search.zsh source ~/.config/zsh/zsh-history-substring-search/zsh-history-substring-search.zsh
# Ignore duplicate commands in history
setopt HIST_IGNORE_DUPS
bindkey '^[[A' history-substring-search-up bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down bindkey '^[[B' history-substring-search-down
bindkey -M vicmd 'k' history-substring-search-up bindkey -M vicmd 'k' history-substring-search-up