1
0
mirror of https://github.com/chylex/dotfiles.git synced 2026-02-14 06:06:14 +01:00

Compare commits

..

4 Commits

2 changed files with 16 additions and 5 deletions

View File

@@ -1,8 +1,14 @@
if [[ $- = *i* ]]; then
bind "set completion-ignore-case on"
bind "set show-all-if-ambiguous on"
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
fi
shopt -s histappend
HISTCONTROL=ignoreboth
PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
alias gh='history|grep'
alias less='less -R --mouse'
@@ -34,6 +40,7 @@ function ssh() {
tmux rename-window -t"${TMUX_PANE}" "$*"
command ssh "$@"
tmux set-window-option automatic-rename "on"
vim +q # Fix terminal
else
command ssh "$@"
fi

6
.vimrc
View File

@@ -1,6 +1,6 @@
set autoindent
set backspace=indent,eol,start
set completeopt=fuzzy,menuone,preview
set completeopt=menuone,preview
set encoding=utf-8
set guifont=Cascadia_Mono:h12:cANSI:qDRAFT
set guioptions-=t " Remove menu tearoff
@@ -40,6 +40,10 @@ set wildmenu
set winaltkeys=no
set wrap
if has("patch-9.1.0463")
set completeopt+=fuzzy
endif
" Windows paths
set packpath=$HOME/.vim,$VIM/vimfiles,$VIMRUNTIME
set runtimepath=$HOME/.vim,$VIM/vimfiles,$VIMRUNTIME