From a460ee3bb4b0b8ab7e64ded46fad57259155fc9a Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sun, 10 Jun 2018 12:57:38 -0700 Subject: [PATCH 1/5] More convenience keybindings. --- dotfiles/zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 834fc95..186171d 100755 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -46,8 +46,17 @@ typeset -U path # Keybindings bindkey '^[[A' history-search-backward bindkey '^[[B' history-search-forward +# ctrl-arrow keys bindkey '^[[1;5C' forward-word bindkey '^[[1;5D' backward-word +bindkey '^P' up-history +bindkey '^N' down-history +bindkey '^?' backward-delete-char +bindkey '^h' backward-delete-char +# ok, a few convenience bindings +bindkey '^w' backward-kill-word +bindkey '^r' history-incremental-search-backward + # Source extras and aliases if interactive if [[ $- == *i* ]] ; then From 08d9567bdf6952958213eb6ba26ef020c9cbdea5 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Mon, 11 Jun 2018 21:29:50 -0700 Subject: [PATCH 2/5] Update zsh. --- dotfiles/zpreztorc | 2 +- dotfiles/zshrc | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/dotfiles/zpreztorc b/dotfiles/zpreztorc index 9558803..5d928ad 100644 --- a/dotfiles/zpreztorc +++ b/dotfiles/zpreztorc @@ -214,7 +214,7 @@ zstyle ':prezto:module:python:virtualenv' initialize 'yes' zstyle ':prezto:module:tmux:auto-start' local 'no' # Auto start a session when Zsh is launched in a SSH connection. -zstyle ':prezto:module:tmux:auto-start' remote 'yes' +zstyle ':prezto:module:tmux:auto-start' remote 'no' # Integrate with iTerm2. # zstyle ':prezto:module:tmux:iterm' integrate 'yes' diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 186171d..b6b71d5 100755 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -76,12 +76,3 @@ fi # Load any local settings if [ -e $HOME/.zshrc.local ] ; then source $HOME/.zshrc.local ; fi - -function start_esp { - if [ ! -d ${HOME}/tools/esp ] ; then - echo "ESP not installed!" >/dev/stderr - return 1 - fi - export PATH="${PATH}:${HOME}/tools/esp/xtensa-esp32-elf/bin" - export IDF_PATH="${HOME}/tools/esp/esp-idf" -} From ba546d478e143f99357ddbbcfa0cdd303d51d148 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Mon, 11 Jun 2018 21:55:00 -0700 Subject: [PATCH 3/5] Add tmux copy/pasta. --- dotfiles/tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf index adafb95..d1682b7 100644 --- a/dotfiles/tmux.conf +++ b/dotfiles/tmux.conf @@ -57,3 +57,7 @@ bind M \ set -g mouse-select-pane off \;\ set -g mouse-select-window off \;\ display 'Mouse: OFF' + +# tmux X clipboard integration +bind C-c run "tmux show-buffer | xsel -i -b" +bind C-v run "tmux set-buffer -- \"$(xsel -o -b)\"; tmux paste-buffer" From 1cafe1cf7a2b93684ee6585f25588043a9ab65af Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Wed, 13 Jun 2018 14:26:44 -0700 Subject: [PATCH 4/5] Don't always send a fake user agent. --- dotfiles/curlrc | 1 - 1 file changed, 1 deletion(-) diff --git a/dotfiles/curlrc b/dotfiles/curlrc index d9532b9..e3a7ab0 100644 --- a/dotfiles/curlrc +++ b/dotfiles/curlrc @@ -1,4 +1,3 @@ tlsv1 -user-agent = "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0 Safari/537.36" create-dirs referer = ";auto" From 8f4e4fe77b30acab569fb2807d7efb17dc3a569c Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Mon, 18 Jun 2018 09:25:48 -0700 Subject: [PATCH 5/5] I don't like noglob scp. --- dotfiles/zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dotfiles/zshrc b/dotfiles/zshrc index b6b71d5..20432f7 100755 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -32,6 +32,8 @@ fi if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" fi +# noglob scp is so annoying +unalias scp # Overrides to prezto unsetopt cdablevars