summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-07-09 21:23:26 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-07-09 21:23:26 +0100
commitec6b8ec9fa98cec4bf3fa6ef64112847f13b2e5a (patch)
treedfd79e5e089007dc441ff67287cdaf24b00f3603
parent19fbede22889a96e7d0b2c377eda74bfe116d440 (diff)
Improve zgen configuration
-rw-r--r--vim/.netrwhist3
-rw-r--r--zshrc31
2 files changed, 24 insertions, 10 deletions
diff --git a/vim/.netrwhist b/vim/.netrwhist
index 87b6bdf..5793e91 100644
--- a/vim/.netrwhist
+++ b/vim/.netrwhist
@@ -1,5 +1,6 @@
let g:netrw_dirhistmax =10
-let g:netrw_dirhist_cnt =3
+let g:netrw_dirhist_cnt =4
let g:netrw_dirhist_1='/home/urbain/Dropbox/phd/code/spectral/feature'
let g:netrw_dirhist_2='/home/urbain/Dropbox/phd/code/spectral/feature/src'
let g:netrw_dirhist_3='/home/urbain/Dropbox/phd/code/spectral/develop/python'
+let g:netrw_dirhist_4='/home/urbain/.antigen'
diff --git a/zshrc b/zshrc
index 3b9541f..af6361e 100644
--- a/zshrc
+++ b/zshrc
@@ -8,15 +8,21 @@ if ! zgen saved; then
# Load oh-my-zsh framework
zgen oh-my-zsh
- # Plugins
+ # Oh-my-zsh plugins
zgen oh-my-zsh plugins/git
zgen oh-my-zsh plugins/vi-mode
zgen oh-my-zsh plugins/ubuntu
zgen oh-my-zsh plugins/tmux
- zgen rupa/z
- # Load completion
+ # zsh-users plugins
zgen load zsh-users/zsh-completions src
+ zgen load zsh-users/zsh-syntax-highlighting
+
+ # Other plugins
+ zgen load rupa/z
+ zgen load tarruda/zsh-autosuggestions
+ zgen load Tarrasch/zsh-autoenv
+ zgen load uvaes/fzf-marks plugin develop
# Theme
zgen oh-my-zsh themes/eastwood
@@ -25,6 +31,19 @@ if ! zgen saved; then
zgen save
fi
+# Plugins configuration
+
+# Autosuggestion
+AUTOSUGGESTION_HIGHLIGHT_COLOR='fg=6'
+bindkey '^y' autosuggest-execute-suggestion
+zle-line-init() {
+ zle autosuggest-start
+}
+zle -N zle-line-init
+
+# Fzf-marks
+bindkey '^g' fzf-marks-navigate
+
# User configuration
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
@@ -120,9 +139,6 @@ fshow() {
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
-# Set programmer dvorak
-# xrdb ~/.Xresources
-
TERM=xterm-256color
if [[ -n ${TMUX} && -n ${commands[tmux]} ]];then
@@ -134,6 +150,3 @@ if [[ -n ${TMUX} && -n ${commands[tmux]} ]];then
TERM=screen
esac
fi
-
-# Load external scripts
-source ~/github/fzf-marks/fzf-marks.zsh