From 760e1c9e4ed27374676e7819c41bd0f18e680928 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Sat, 9 Jul 2016 20:41:52 +0200 Subject: [PATCH] Msys2 here --- .bashrc | 6 ++- .config/bash/bashrc_local => .bashrc_local | 6 +-- .config/bash/aliases | 10 ++--- .config/profile/environ.sh | 4 +- .config/profile/paths.sh | 2 + .inputrc | 21 +++++----- .local/exe/msys2_here.reg | Bin 0 -> 2110 bytes .vimrc | 43 +++++++++++---------- 8 files changed, 48 insertions(+), 44 deletions(-) rename .config/bash/bashrc_local => .bashrc_local (57%) create mode 100644 .local/exe/msys2_here.reg diff --git a/.bashrc b/.bashrc index 0afaa65..3551ddf 100644 --- a/.bashrc +++ b/.bashrc @@ -8,4 +8,8 @@ for file in ${HOME}/.config/bash/*; do [ -f "$file" ] && . "$file"; done; -[ -f ~/.fzf.bash ] && source ~/.fzf.bash +#export VIRTUALENVWRAPPER_PYTHON=`/usr/bin/env python3` +#. /mingw64/bin/virtualenvwrapper.sh + +# last line +[ -f ~/.bashrc_local ] && . ~/.bashrc_local diff --git a/.config/bash/bashrc_local b/.bashrc_local similarity index 57% rename from .config/bash/bashrc_local rename to .bashrc_local index 2f5faba..39f8a23 100644 --- a/.config/bash/bashrc_local +++ b/.bashrc_local @@ -4,9 +4,9 @@ if [ -d "${HOME}/.fzf" ] ; then PATH="${HOME}/.fzf:${PATH}" fi +PATH="C:/Program\ Files\ (x86)/MSBuild/12.0/Bin:/c/programs/CMake/bin:${PATH}" + +[ -f ~/.fzf.bash ] && source ~/.fzf.bash -export GOPATH="$HOME/gopath" -#export GOROOT=/mingw64 -export GOROOT=/mingw64/lib/go eval "$(ssh-agent -s)" ssh-add.exe ~/.ssh/github diff --git a/.config/bash/aliases b/.config/bash/aliases index 19859cd..eb2f979 100644 --- a/.config/bash/aliases +++ b/.config/bash/aliases @@ -87,12 +87,10 @@ alias reload="exec $SHELL -l" alias newterm='mintty /bin/env CHERE_INVOKING=1 /bin/bash -l &' alias gtypist='gtypist -wi' alias startxwin='run /usr/bin/bash.exe -l -c "/usr/bin/startxwin -- -nolock -unixkill"' -alias sumatra='startSumatra.sh' -alias lynx='lynx -use_mouse -vikeys' alias startvnc='vncserver -geometry 1870x980 -depth 24' alias startvnc4='vnc4server -geometry 1870x980 -depth 24' -#alias python='/usr/local/bin/python3' -alias git_local='git --git-dir=.git_local' alias dotfiles='git --git-dir=$HOME/.dotfiles --work-tree=$HOME' -alias vcbuild='"C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/vcpackages/vcbuild.exe"' - +alias vcbuild='winpty "c:/program files (x86)/microsoft visual studio 9.0/vc/vcpackages/vcbuild.exe"' +alias msbuild='winpty "c:/program files (x86)/msbuild/12.0/bin/msbuild.exe"' +alias python='winpty "c:/program files (x86)/python35-32/python.exe"' +alias cmake='winpty "c:/programs/cmake/bin/cmake.exe"' diff --git a/.config/profile/environ.sh b/.config/profile/environ.sh index b4f75b9..c906c16 100644 --- a/.config/profile/environ.sh +++ b/.config/profile/environ.sh @@ -32,7 +32,9 @@ export LESS_TERMCAP_md="${yellow}"; # export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s" export LESS=-eFRX - +export GTEST_DIR=~/repos/googletest/googletest +export CPPUNITDIR=~/repos/cppunit +export VIRTUALENVWRAPPER_PYTHON=/mingw64/bin/python3 #export XDG_CONFIG_HOME = ~/.config/ #export XDG_DATA_HOME = ~/.local/share/ diff --git a/.config/profile/paths.sh b/.config/profile/paths.sh index 2de7134..3d5875b 100644 --- a/.config/profile/paths.sh +++ b/.config/profile/paths.sh @@ -20,6 +20,8 @@ fi # Set PATH to temporary folders export TMPDIR="${HOME}/.tmp" export TEMPDIR="$TMPDIR" +export TEMP="$TMPDIR" +export TMP="$TMPDIR" mkdir -m700 "$TMPDIR" > /dev/null 2>&1 # Set PATH to PREFIX folders diff --git a/.inputrc b/.inputrc index b6d3781..630cf3c 100644 --- a/.inputrc +++ b/.inputrc @@ -1,7 +1,4 @@ # Use vi keybindings for everything that uses readline. -set editing-mode vi -# Prompt will be prefixed with a `+` while in insert mode and a `:` when in command mode -#set show-mode-in-prompt on # Adds punctuation as word delimiters set bind-tty-special-chars off @@ -17,23 +14,23 @@ set completion-query-items 200 set visible-stats on set skip-completed-text on +set editing-mode vi +set keymap vi $if mode=vi + # Prompt will be prefixed with a `+` while in insert mode and a `:` when in command mode + #set show-mode-in-prompt on set keymap vi-command "gg": beginning-of-history "G": end-of-history - "p": history-search-backward - "n": history-search-forward -# "\e[C": forward-char -# "\e[D": backward-char + "k": history-search-backward + "j": history-search-forward set keymap vi-insert + "jj": vi-movement-mode "\C-l": clear-screen "\C-w": backward-kill-word - # auto-complete from the history - "\C-p": history-search-backward - "\C-n": history-search-forward -# "\e[C": forward-char -# "\e[D": backward-char + "\C-k": history-search-backward + "\C-j": history-search-forward $endif $if Bash diff --git a/.local/exe/msys2_here.reg b/.local/exe/msys2_here.reg new file mode 100644 index 0000000000000000000000000000000000000000..61ab49dcb65a3be918c9eed9f70bba5667d6a3c1 GIT binary patch literal 2110 zcmc(gUrPc(6vfYT(05oC>ZweuB!a*)spubMB+-UQN{Okl7V4L;es^XUl}hNrm0@iu8 zdm#PE!}J?==i>NGvD(@Pbr=4v5~i_xHgX^uF#~PEg*`hw-_Xd^Y4SS)=^C|Rt4F)& z+`9>bLzyPiIbS-@2}}oCcizC&mgO2yomRiCB+F1|4t)>Xw6^@q+GmZxXLV@R*npdX z+p~4dENUmQy^cPMl&58}Fki|4pzfs :cscope find s =expand(""):botright cwindow - nnoremap fg :cscope find g =expand(""):botright cwindow - nnoremap fc :cscope find c =expand(""):botright cwindow - nnoremap ft :cscope find t =expand(""):botright cwindow - nnoremap fe :cscope find e =expand(""):botright cwindow - nnoremap ff :cscope find f =expand(""):botright cwindow - nnoremap fd :cscope find d =expand(""):botright cwindow - nnoremap fi :cscope find i ^=expand("")$:botright cwindow - "todo: figure out how to get cstag output in quickfix or a popup menu. - map :cstag =expand("") -endif +" explorer +nnoremap e :Lexplore . +" cd to same directory as file +nnoremap cd :cd %:p:h:pwd +" source .vimrc +nnoremap v :so ~/.vimrc " copy/paste from system clipboard if has("win32") @@ -207,10 +202,19 @@ else "noremap P "*P endif -" cd to same directory as file -nnoremap cd :cd %:p:h:pwd -" source .vimrc -nnoremap v :so ~/.vimrc +if has("cscope") + nnoremap fs :cscope find s =expand(""):botright cwindow + nnoremap fg :cscope find g =expand(""):botright cwindow + nnoremap fc :cscope find c =expand(""):botright cwindow + nnoremap ft :cscope find t =expand(""):botright cwindow + nnoremap fe :cscope find e =expand(""):botright cwindow + nnoremap ff :cscope find f =expand(""):botright cwindow + nnoremap fd :cscope find d =expand(""):botright cwindow + nnoremap fi :cscope find i ^=expand("")$:botright cwindow + "todo: figure out how to get cstag output in quickfix or a popup menu. + map :cstag =expand("") +endif + " split navigations nnoremap nnoremap @@ -221,9 +225,6 @@ nnoremap za "exit insert mode inoremap jj inoremap j j -" explorer -"nnoremap e :e . -nnoremap e :Lexplore . " section: autocommands {{{1 " -------------------------- -- 2.43.0