]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/commitdiff
Add antigen, install a few plugins
authorHendrik Jaeger <git-commit@henk.geekmail.org>
Wed, 10 Oct 2018 19:12:18 +0000 (21:12 +0200)
committerHendrik Jaeger <git-commit@henk.geekmail.org>
Wed, 10 Oct 2018 19:12:18 +0000 (21:12 +0200)
.motd
.zsh_antigen [new file with mode: 0644]
.zsh_functions
.zshrc

diff --git a/.motd b/.motd
index 423cb110fb291fd2e04cf987175e548b3c626c8e..69a96a1b1ba361df9c70669f4a21026cd3f609e5 100644 (file)
--- 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 (file)
index 0000000..4ba1f84
--- /dev/null
@@ -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
+
index 181d4ba6b3d7495e089b6e58f3391ebba3875025..abc9d22e4507617937982138071b2fc36d2e7391 100644 (file)
@@ -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 d91eb77ca24cfa622a5ceb881738ab52c845f94f..4c411abfa2439af514ad894cdeef38091dc2c5c4 100644 (file)
--- 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