From 9372270fdc1424b138710d31d6ae5e74177067b0 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Tue, 2 Apr 2024 08:19:52 -0400 Subject: [PATCH] Update dotfiles. --- .ashrc | 4 +++- .config/nvim/init.vim | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.ashrc b/.ashrc index 7454979..5f4d6d5 100644 --- a/.ashrc +++ b/.ashrc @@ -12,7 +12,9 @@ is_ssh() { } # The shell might not start in the home directory. -cd "$HOME" +if [ "$(pwd)" = "/" ]; then + cd "$HOME" +fi # Signal to some programs that vi is the editor that should be launched. export EDITOR=nvim diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 2587091..96304ba 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -16,10 +16,11 @@ set fileformat=unix set encoding=UTF-8 set syntax=on -set colorcolumn=72,80,100 +set colorcolumn=80,100 +set textwidth=80 set autoread -set spell +" set spell set ignorecase set smartcase @@ -31,3 +32,5 @@ set showmode set mouse= " Disable mouse support +" Prevent the terminal from swallowing ESC +tnoremap