Browse Source

Merge branch 'master' of github.com:bixel/dotfiles

Kevin 5 years ago
parent
commit
c21ae04086
3 changed files with 17 additions and 1 deletions
  1. 3 0
      Xmodmap
  2. 3 0
      tmux.conf
  3. 11 1
      zshrc

+ 3 - 0
Xmodmap

@@ -2,3 +2,6 @@ clear lock
 keycode   9 = Caps_Lock NoSymbol Caps_Lock NoSymbol Caps_Lock
 keycode  66 = Escape NoSymbol Escape NoSymbol Escape
 add lock = Caps_Lock
+keycode  30 = u U u U U00FC U00DC
+keycode  32 = o O o O U00F6 U00D6 oslash Oslash
+keycode  38 = a A a A U00E4 U00C4

+ 3 - 0
tmux.conf

@@ -45,5 +45,8 @@ set-window-option -g mode-keys vi
 unbind -T copy-mode-vi MouseDragEnd1Pane
 bind-key -T copy-mode-vi y send-keys -X copy-selection
 
+# prevent delayed escape key
+set -s escape-time 0
+
 # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
 run '~/.dotfiles/external/tpm/tpm'

+ 11 - 1
zshrc

@@ -84,7 +84,12 @@ mountremote () {
       mountpoint=$1-`echo $2 | sed -E "s/\///g"`
   fi
   mkdir -p $mountroot/$mountpoint
-  sshfs $1:$2 "$mountroot/$mountpoint" -o auto_cache,reconnect,volname=$mountpoint,no_readahead,noappledouble,nolocalcaches
+  if [[ $(uname -a) == *"Darwin"* ]]; then
+      # following line is apple-specific
+      sshfs $1:$2 "$mountroot/$mountpoint" -o auto_cache,reconnect,volname=$mountpoint,no_readahead,noappledouble,nolocalcaches
+  else
+      sshfs $1:$2 "$mountroot/$mountpoint" -o auto_cache,reconnect,no_readahead
+  fi
   unset mountroot
   unset mountpoint
 }
@@ -105,6 +110,11 @@ function tmux-num-sessions () {
     done
 }
 
+# help creating links to emails
+function murl () {
+    echo message://"%3c"$@"%3e"
+}
+
 # make the clipboard working on remote
 if [[ -n "$SSH_CLIENT" ]]; then
   SSH_IP=$(echo $SSH_CLIENT | awk '{print $1}')