Merge branch 'master' of https://git.frogeye.fr/geoffrey/dotfiles
This commit is contained in:
commit
05613c5289
7 changed files with 162 additions and 2016 deletions
|
@ -21,8 +21,8 @@ alias free='free -m'
|
|||
alias dmesg='dmesg --ctime'
|
||||
|
||||
# [ -f ~/.local/bin/colorSchemeApplyFzf ] && . ~/.local/bin/colorSchemeApplyFzf # Only applies RGB colors...
|
||||
POWERLINE_GO_DEFAULT_OPTS=(-colorize-hostname -max-width 25 -cwd-max-dir-size 10 -modules 'user,host,ssh,venv,cwd,perms,git' -modules-right 'jobs,exit,duration,load') # For reading by shell profiles
|
||||
FZF_DEFAULT_OPTS="--height 100% --layout=default"
|
||||
POWERLINE_GO_DEFAULT_OPTS=(-colorize-hostname -max-width 25 -cwd-max-dir-size 10 -modules 'user,host,venv,cwd,perms,git' -modules-right 'jobs,exit,duration,load') # For reading by shell profiles
|
||||
FZF_DEFAULT_OPTS="--height 40% --layout=default"
|
||||
FZF_CTRL_T_OPTS="--preview '[[ -d {} ]] && ls -l --color=always {} || [[ \$(file --mime {}) =~ binary ]] && file --brief {} || (highlight -O ansi -l {} || coderay {} || rougify {} || cat {}) 2> /dev/null | head -500'"
|
||||
FZF_COMPLETION_OPTS="${FZF_CTRL_T_OPTS}"
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
export PAGER=less
|
||||
export EDITOR=nvim
|
||||
export VISUAL=nvim
|
||||
export BROWSER=qutebrowser
|
||||
export BROWSER=firefox
|
||||
|
||||
# Program-specific
|
||||
|
||||
|
|
|
@ -15,11 +15,24 @@ ADOTDIR=~/.cache/antigen
|
|||
mkdir -p $ADOTDIR
|
||||
typeset -a ANTIGEN_CHECK_FILES=(~/.config/shell/zshrc)
|
||||
|
||||
source ~/.local/share/zsh/antigen.zsh # Don't work with trysource, why?
|
||||
antigen bundle zsh-users/zsh-completions
|
||||
antigen bundle zsh-users/zsh-syntax-highlighting
|
||||
antigen bundle zsh-users/zsh-autosuggestions
|
||||
antigen bundle zsh-users/zsh-history-substring-search
|
||||
[ -f ~/.local/share/zsh/antigen.zsh ] || (mkdir -p ~/.local/share/zsh/ && curl -L git.io/antigen > ~/.local/share/zsh/antigen.zsh)
|
||||
source ~/.local/share/zsh/antigen.zsh
|
||||
|
||||
# This is better to have them installed as system since we can use them as root
|
||||
# pacman -S zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting zsh-completions --needed
|
||||
function plugin() {
|
||||
if [ -d "/usr/share/licenses/$2" ]
|
||||
then
|
||||
trysource "/usr/share/zsh/plugins/$2/$2.zsh"
|
||||
# It's ok if it fails
|
||||
else
|
||||
antigen bundle "$1/$2"
|
||||
fi
|
||||
}
|
||||
plugin zsh-users zsh-completions
|
||||
plugin zsh-users zsh-syntax-highlighting
|
||||
plugin zsh-users zsh-autosuggestions
|
||||
plugin zsh-users zsh-history-substring-search
|
||||
antigen apply
|
||||
|
||||
|
||||
|
@ -111,8 +124,7 @@ bindkey -M vicmd 'k' history-substring-search-up
|
|||
bindkey -M vicmd 'j' history-substring-search-down
|
||||
|
||||
# Autocompletion
|
||||
autoload -Uz compinit promptinit
|
||||
compinit
|
||||
autoload -Uz promptinit
|
||||
promptinit
|
||||
|
||||
# Color common prefix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue