summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Jaeger <git-commit@henk.geekmail.org>2018-10-10 21:12:18 +0200
committerHendrik Jaeger <git-commit@henk.geekmail.org>2018-10-10 21:12:18 +0200
commit17b5541547b07a4154c7603a4f20ddc3ca519f35 (patch)
treed6629df602fcdd69f876081dbd891208032d2f37
parent336c376355be57d54be3437655ea99d6d1c8c708 (diff)
Add antigen, install a few plugins
-rw-r--r--.motd3
-rw-r--r--.zsh_antigen17
-rw-r--r--.zsh_functions92
-rw-r--r--.zshrc32
4 files changed, 86 insertions, 58 deletions
diff --git a/.motd b/.motd
index 423cb11..69a96a1 100644
--- a/.motd
+++ b/.motd
@@ -21,3 +21,6 @@ VCSH:
buku:
- buku --ai
+ZSH - antigen:
+- antigen update
+
diff --git a/.zsh_antigen b/.zsh_antigen
new file mode 100644
index 0000000..4ba1f84
--- /dev/null
+++ b/.zsh_antigen
@@ -0,0 +1,17 @@
+antigen bundle 'https://github.com/willghatch/zsh-saneopt'
+
+antigen bundle 'https://github.com/joel-porquet/zsh-dircolors-solarized'
+antigen bundle 'https://github.com/zsh-users/zsh-syntax-highlighting'
+
+antigen bundle 'https://github.com/MikeDacre/tmux-zsh-vim-titles'
+
+antigen bundle 'https://github.com/nojhan/liquidprompt'
+
+antigen bundle 'https://github.com/laurenkt/zsh-vimto'
+
+antigen bundle 'https://github.com/MichaelAquilina/zsh-you-should-use'
+
+antigen bundle 'https://github.com/desyncr/auto-ls'
+
+antigen apply
+
diff --git a/.zsh_functions b/.zsh_functions
index 181d4ba..abc9d22 100644
--- a/.zsh_functions
+++ b/.zsh_functions
@@ -1,49 +1,49 @@
-function info_print () {
- local esc_begin esc_end
- esc_begin="$1"
- esc_end="$2"
- shift 2
- printf '%s' ${esc_begin}
- printf '%s' "$*"
- printf '%s' "${esc_end}"
-}
-
-function set_title () {
- info_print $'\e]0;' $'\a' "$@"
-}
-
-function ESC_print () {
- info_print $'\ek' $'\e\\' "$@"
-}
-
-preexec () {
- case $TERM in
- (xterm*|rxvt*)
- set_title "${(%):-"%n@%m:"}" "$1"
- ;;
- (screen*)
- local CMD=${1[(wr)^(*=*|sudo|ssh|evince|-*)]}
- ESC_print ${CMD}
- ;;
- esac
-}
-
-precmd () {
- case $TERM in
- (xterm*|rxvt*)
- set_title ${(%):-"%n@%m: %~"}
- ;;
- (screen*)
- ESC_print "zsh"
- ;;
- esac
-
- vcs_info
-
-# local INBOXINFO="$(task rc.gc=off rc.verbose=nothing +in +PENDING count) "
-
- PS1="${HENKSPROMPTHEADER}%(0?..%F{red}E%?%f )%(1j.%F{yellow}J%j%f .)%(3L.%F{yellow}L%L%f .)%3~ %F{green}$VCSH_REPO_NAME%f%F{yellow}${vcs_info_msg_0_}%f%# "
-}
+#function info_print () {
+# local esc_begin esc_end
+# esc_begin="$1"
+# esc_end="$2"
+# shift 2
+# printf '%s' ${esc_begin}
+# printf '%s' "$*"
+# printf '%s' "${esc_end}"
+#}
+#
+#function set_title () {
+# info_print $'\e]0;' $'\a' "$@"
+#}
+#
+#function ESC_print () {
+# info_print $'\ek' $'\e\\' "$@"
+#}
+#
+#preexec () {
+# case $TERM in
+# (xterm*|rxvt*)
+# set_title "${(%):-"%n@%m:"}" "$1"
+# ;;
+# (screen*)
+# local CMD=${1[(wr)^(*=*|sudo|ssh|evince|-*)]}
+# ESC_print ${CMD}
+# ;;
+# esac
+#}
+#
+#precmd () {
+# case $TERM in
+# (xterm*|rxvt*)
+# set_title ${(%):-"%n@%m: %~"}
+# ;;
+# (screen*)
+# ESC_print "zsh"
+# ;;
+# esac
+#
+# vcs_info
+#
+## local INBOXINFO="$(task rc.gc=off rc.verbose=nothing +in +PENDING count) "
+#
+# PS1="${HENKSPROMPTHEADER}%(0?..%F{red}E%?%f )%(1j.%F{yellow}J%j%f .)%(3L.%F{yellow}L%L%f .)%3~ %F{green}$VCSH_REPO_NAME%f%F{yellow}${vcs_info_msg_0_}%f%# "
+#}
function vifind () {
vi $( find $@)
diff --git a/.zshrc b/.zshrc
index d91eb77..4c411ab 100644
--- a/.zshrc
+++ b/.zshrc
@@ -1,5 +1,9 @@
+source /usr/share/zsh-antigen/antigen.zsh
+antigen init ~/.zsh_antigen
+
+source /usr/share/autojump/autojump.sh
+
autoload -Uz vcs_info
-autoload -U edit-command-line
. ~/.zsh_comprc
. ~/.zsh_taskwarrior
@@ -12,9 +16,9 @@ autoload -U edit-command-line
. ~/.zsh_local
. ~/.zsh_qemu
-zle -N zle-line-init
-zle -N zle-keymap-select
-zle -N edit-command-line
+#zle -N zle-line-init
+#zle -N zle-keymap-select
+#zle -N edit-command-line
HISTFILE=~/.zsh_history
HISTSIZE=5000
@@ -22,7 +26,7 @@ SAVEHIST=3000
REPORTTIME=10
-HENKSPROMPTHEADER=$'%F{red}%D{%a}%f %F{green}%D{%F %T Wk %V}%f %F{blue}%D{%s}%f %F{yellow}%n@%m%f\n'
+#HENKSPROMPTHEADER=$'%F{red}%D{%a}%f %F{green}%D{%F %T Wk %V}%f %F{blue}%D{%s}%f %F{yellow}%n@%m%f\n'
PATH=~/bin:~/usr/bin:~/usr/local/bin:$PATH
@@ -37,7 +41,7 @@ hash -d doc=/usr/share/doc
## define word separators (for stuff like backward-word, forward-word, backward-kill-word,..)
#WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>' # the default
#WORDCHARS=.
-WORDCHARS='*?_[]~=&;!#$%^(){}'
+#WORDCHARS='*?_[]~=&;!#$%^(){}'
#WORDCHARS='${WORDCHARS:s@/@}'
setopt AUTO_CD
@@ -46,30 +50,34 @@ setopt CHASE_LINKS
setopt AUTO_NAME_DIRS
setopt BRACE_CCL
-setopt EXTENDED_GLOB
+#setopt EXTENDED_GLOB
setopt MARK_DIRS
setopt NUMERIC_GLOB_SORT
setopt RC_EXPAND_PARAM
-setopt WARN_CREATE_GLOBAL
+#setopt WARN_CREATE_GLOBAL
setopt GLOB_DOTS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_REDUCE_BLANKS
setopt HIST_VERIFY
-setopt INC_APPEND_HISTORY
+#setopt INC_APPEND_HISTORY
+setopt INC_APPEND_HISTORY_TIME
setopt NO_CLOBBER
setopt CORRECT
setopt CORRECT_ALL
-unsetopt NOMATCH
+#unsetopt NOMATCH
setopt PRINT_EXIT_VALUE
setopt AUTO_CONTINUE
setopt NO_BG_NICE
-setopt LONG_LIST_JOBS
+#setopt LONG_LIST_JOBS
+
+export $tzvt_set_tmux_window_status=true
+export YSU_MODE=ALL
-bindkey -e
+#bindkey -v
#task awaiting