From 5815316af73d2f23c4949845bf4a0ecb4605d8c5 Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Tue, 11 Dec 2018 10:28:06 -0700 Subject: [PATCH] Add new files and updates --- .bash_aliases | 8 ++++++-- .inputrc | 6 ++++++ .tmux.conf | 2 +- .vimrc | 1 + backup.sh | 2 +- bashscripts/resizetmux.bash | 14 ++++++++++++++ deploy.sh | 2 +- 7 files changed, 30 insertions(+), 5 deletions(-) create mode 100755 bashscripts/resizetmux.bash diff --git a/.bash_aliases b/.bash_aliases index 8750001..6a48d12 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -2,9 +2,11 @@ export PATH=/usr/lib/dart/bin:$HOME/.local/bin:/snap/bin:/usr/local/gradle/gradl export PATH=$PATH:$HOME/yuzu/:$HOME/Nim/bin:$HOME/.nimble/bin:$HOME/nimlibs export PATH=$PATH:$HOME/gcclibs/aarch64-linux-gnu/bin:$HOME/gcclibs/arm-linux-gnueabi/bin export PATH=$HOME/.pub-cache/bin:$PATH -export GOROOT=/usr/local/go +export PATH=$PATH:$HOME/flutter/bin +export GOROOT=/usr/lib/go-1.11/ +export GOPATH=$HOME/go export GOBIN=$GOROOT/bin -export PATH=$PATH:/usr/local/go/bin +export PATH=$PATH:$GOBIN export DEVKITPRO=/opt/devkitpro export DEVKITARM=${DEVKITPRO}/devkitARM export DEVKITA64=${DEVKITPRO}/devkitA64 @@ -26,6 +28,7 @@ alias did="vim +'normal Go' +'r!date' ~/Documents/did.txt" alias lcat='pygmentize -g -O style=colorful,linenos=1 | grep -P "^\d\d\d\d:"' alias ccat='pygmentize -g' alias hcat='highlight -n -O ansi --force' +alias tcat='highlight -O ansi --force' alias dc="docker-compose" @@ -70,3 +73,4 @@ export TERM=screen-256color export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1 . $HOME/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true . /home/joey/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true + diff --git a/.inputrc b/.inputrc index 8ca37de..961f374 100644 --- a/.inputrc +++ b/.inputrc @@ -1,4 +1,10 @@ +$include /etc/inputrc "\ek": previous-history "\ej": next-history "\eh": backward-char "\el": forward-char + +"\ew": forward-word +"\eb": backward-word + +"\ep": quoted-insert diff --git a/.tmux.conf b/.tmux.conf index 033e2eb..f8e6203 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -126,7 +126,7 @@ run -b 'tmux bind -ct vi-edit Escape cancel 2> /dev/null || true' # -- copy mode ----------------------------------------------------------------- - +bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection bind Enter copy-mode # enter copy mode run -b 'tmux bind -t vi-copy v begin-selection 2> /dev/null || true' diff --git a/.vimrc b/.vimrc index f084e11..dd7b030 100644 --- a/.vimrc +++ b/.vimrc @@ -271,6 +271,7 @@ Plug 'udalov/kotlin-vim' Plug 'ervandew/supertab' Plug 'simnalamburt/vim-mundo' Plug 'christoomey/vim-tmux-navigator' +Plug 'tpope/vim-surround' "Plug 'baabelfish/nvim-nim' call plug#end() diff --git a/backup.sh b/backup.sh index 55ae804..cb226e9 100755 --- a/backup.sh +++ b/backup.sh @@ -1 +1 @@ -cp -rf ~/.vim* ~/.python* ~/.bash* ~/bashscripts ~/.pylint* ~/.tmux* ~/.profile ~/.gitconfig . +cp -rf ~/.inputrc ~/.vim* ~/.python* ~/.bash* ~/bashscripts ~/.pylint* ~/.tmux* ~/.profile ~/.gitconfig . diff --git a/bashscripts/resizetmux.bash b/bashscripts/resizetmux.bash new file mode 100755 index 0000000..144a522 --- /dev/null +++ b/bashscripts/resizetmux.bash @@ -0,0 +1,14 @@ +tmux selectp -t 1 +tmux splitw -h -p 50 +tmux splitw -v -p 50 +tmux selectp -t 1 + +tmux splitw -h -p 50 +tmux splitw -v -p 50 +tmux selectp -t 1 +tmux resizep -R -x 106 +tmux selectp -t 2 +tmux resizep -R -x 106 +tmux selectp -t 4 +tmux resizep -R -x 106 +tmux selectp -t 1 diff --git a/deploy.sh b/deploy.sh index baec756..67178ee 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1 +1 @@ -cp -rf .vim* .python* .bash* bashscripts .pylint* .tmux* .profile .gitconfig ~/ +cp -rf .inputrc .vim* .python* .bash* bashscripts .pylint* .tmux* .profile .gitconfig ~/