From 8809e28a1cad05c4464cff27388827e9aa29f9e3 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Tue, 5 Jun 2018 11:05:20 -0500 Subject: [PATCH] Add nice things for WSL --- apps/neovim/init.vim | 1 + shell/bashrc | 3 +++ shell/tmux.conf | 16 ++++++++-------- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/apps/neovim/init.vim b/apps/neovim/init.vim index b3acb9c..550c092 100644 --- a/apps/neovim/init.vim +++ b/apps/neovim/init.vim @@ -171,6 +171,7 @@ Plug 'hail2u/vim-css3-syntax', {'for': ['styl', 'stylus', 'css', 'vue']} Plug 'kchmck/vim-coffee-script', {'for': ['coffee', 'coffeescript', 'vue']} Plug 'posva/vim-vue', {'for': ['vue']} Plug 'elixir-lang/vim-elixir', {'for': ['elixir', 'ex', 'exs']} +Plug 'OrangeT/vim-csharp', {'for': ['cshtml', 'cshtml.html', 'cs', 'razor']} Plug 'vim-erlang/vim-erlang-runtime', {'for': ['erlang', 'erl']} Plug 'slashmili/alchemist.vim', {'for': ['elixir', 'ex', 'exs']} Plug 'mattn/emmet-vim', {'for': ['html']} diff --git a/shell/bashrc b/shell/bashrc index 79ab713..f8a3793 100644 --- a/shell/bashrc +++ b/shell/bashrc @@ -69,4 +69,7 @@ if [ "$PWD" = "$HOME" ]; then cd "$NICE_HOME" fi +LS_COLORS='ow=01;36;40' +export LS_COLORS + [ -f ~/.fzf.bash ] && source ~/.fzf.bash diff --git a/shell/tmux.conf b/shell/tmux.conf index 9b69036..699ac80 100644 --- a/shell/tmux.conf +++ b/shell/tmux.conf @@ -32,6 +32,11 @@ bind-key h switch-client -p bind-key k switch-client -n bind-key l switch-client -n +bind-key T set-option -g mouse off +bind-key G set-option -g mouse on + +bind -n C-y run "tmux save-buffer - | /mnt/c/Windows/System32/clip.exe" \; display-message "Clipboard copied" + # message colors set -g message-bg colour0 set -g message-fg colour7 @@ -44,14 +49,9 @@ set -g status-justify left set -g status-bg colour0 set -g status-fg colour8 -# don't show time or date or anything - we have a bar for that -set -g status-left '' -set -g status-right '' -set -g status-right-length 20 - set -g status-interval 1 -# set status-interval 1 -# set -g status-right '#[fg=colour4]#W #[fg=colour18]#[bg=default]|#[fg=colour7] #(#{DOTFILES_PATH}/scripts/bin/tmux-session-list #S)' +set -g status-left '#[fg=colour18]#[bg=colour4] #(date +"%Y-%M-%d %H:%M:%S") #[fg=default]#[bg=default]' +set -g status-left-length 80 set -g status-right '#[fg=colour4]#W #[fg=colour18]#[bg=default]|#[fg=colour7] #(#{DOTFILES_PATH}/scripts/bin/tmux-session-list #S)' set -g status-right-length 200 @@ -88,7 +88,7 @@ bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" -bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" +# bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" bind-key -Tcopy-mode-vi 'C-h' send -X "cancel select-pane -L" bind-key -Tcopy-mode-vi 'y' send -X copy-selection