Procházet zdrojové kódy

Update a few things

Kevin Heinicke před 7 roky
rodič
revize
50cd17a876
4 změnil soubory, kde provedl 26 přidání a 3 odebrání
  1. 2 0
      gitignore_global
  2. 7 0
      nvimrc
  3. 3 0
      tmux.conf
  4. 14 3
      zshrc

+ 2 - 0
gitignore_global

@@ -41,3 +41,5 @@ Thumbs.db
 ########################
 env/
 tags
+.clang
+toolchain.cmake

+ 7 - 0
nvimrc

@@ -38,6 +38,7 @@ Plug 'christoomey/vim-tmux-navigator'
 Plug 'roxma/vim-tmux-clipboard'
 Plug 'Chiel92/vim-autoformat'
 Plug 'apple/swift', { 'rtp': 'utils/vim' }
+Plug 'https://bitbucket.org/johanneskoester/snakemake.git', {'rtp': 'misc/vim/'}
 
 " All of your Plugins must be added before the following line
 call plug#end()  " required
@@ -199,3 +200,9 @@ let g:deoplete#sources#clang#libclang_path = '/net/nfshome/home/kheinicke/.local
 " vimtex settings
 let g:vimtex_matchparen_enabled=0  " turn off folding to speed up things
 set nocursorline  " speedup navigation tex documents further
+
+" Snakemake syntax
+au BufNewFile,BufRead Snakefile set syntax=snakemake
+au BufNewFile,BufRead *.rules set syntax=snakemake
+au BufNewFile,BufRead *.snakefile set syntax=snakemake
+au BufNewFile,BufRead *.snake set syntax=snakemake

+ 3 - 0
tmux.conf

@@ -31,6 +31,9 @@ bind r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
 # rebind some clear history command
 bind C-l send-keys C-l \; clear-history
 
+# 500k lines of history...
+set-option -g history-limit 500000
+
 # reuse directory
 bind '"' split-window -c "#{pane_current_path}"
 bind % split-window -h -c "#{pane_current_path}"

+ 14 - 3
zshrc

@@ -49,9 +49,20 @@ mountremote () {
   unset mountpoint
 }
 
-# use the symlinked ssh-auth-sock if available
-if [[ -f "$HOME/.ssh/ssh_auth_sock" ]]; then
-    export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock;
+# use the symlinked ssh-auth-sock if inside tmux session otherwise update the
+# symlink
+# if [[ -f "$HOME/.ssh/ssh_auth_sock" ]]; then
+#     export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock;
+# fi
+
+# if we have a working socket, everything is fine
+if [[ -f "$SSH_AUT_SOCK" ]]; then
+    # if the socket is working, symlink it for other uses
+    if ssh-add -l; then
+        ln -sf $SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock;
+    fi
+elif [[ -f "$HOME/.ssh/ssh_auth_sock" ]]; then
+    export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
 fi
 
 # make the clipboard working on remote