Răsfoiți Sursa

fix mux error and completion, remove old pathogen

Weiyi Lou 12 ani în urmă
părinte
comite
c3a42ede06
3 a modificat fișierele cu 23 adăugiri și 2 ștergeri
  1. 2 1
      tmux/tmux.conf
  2. 0 1
      vim/autoload/pathogen.vim
  3. 21 0
      zsh/omz-custom/tmuxinator.zsh

+ 2 - 1
tmux/tmux.conf

@@ -2,8 +2,9 @@
 unbind C-b
 set-option -g prefix C-a
 
-# start windows from 1
+# start windows and panes from 1, not 0
 set-option -g base-index 1
+set-option -g pane-base-index 1
 
 # history scrollback
 set-option -g history-limit 9999999

+ 0 - 1
vim/autoload/pathogen.vim

@@ -1 +0,0 @@
-../bundle/pathogen/autoload/pathogen.vim

+ 21 - 0
zsh/omz-custom/tmuxinator.zsh

@@ -0,0 +1,21 @@
+#!/usr/bin/env zsh
+
+# Completion of tmuxinator project names
+if [[ ! -o interactive ]]; then
+    return
+fi
+
+compctl -K _tmuxinator tmuxinator mux
+
+_tmuxinator() {
+  local words completions
+  read -cA words
+
+  if [ "${#words}" -eq 2 ]; then
+    completions="$(tmuxinator commands)"
+  else
+    completions="$(tmuxinator completions ${words[2,-2]})"
+  fi
+
+  reply=("${(ps:\n:)completions}")
+}