From d4b25e227e19c6c6b2bc57cfaf0f4fef439ef923 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sat, 17 Feb 2024 14:40:50 -0500 Subject: [PATCH] Add vert resize maps to vimrc Don't push-dconf if git commit or push fails --- fake_home/.vimrc | 3 +++ fake_home/.zshrc | 17 ++++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/fake_home/.vimrc b/fake_home/.vimrc index 694deb8..934f76a 100644 --- a/fake_home/.vimrc +++ b/fake_home/.vimrc @@ -31,6 +31,9 @@ set srr=> nnoremap w yiw:wq:PIr! /home/sage/.shell_aliases wf yyuq:PIe nnoremap s yiw:wq:PIr! /home/sage/.shell_aliases wf yyuq:PIvsp +nnoremap . :vert resize +4 +nnoremap , :vert resize -4 + " " Auto open NERDTree but focus editing window " autocmd VimEnter * NERDTree " autocmd BufEnter * NERDTreeMirror diff --git a/fake_home/.zshrc b/fake_home/.zshrc index 751b5b4..b8cb27d 100644 --- a/fake_home/.zshrc +++ b/fake_home/.zshrc @@ -75,13 +75,7 @@ fi source ~/.shell_aliases source ~/.zsh_local -function pushdot { - cd "$DOT_DIR" || return 1 - if [ $# -eq 0 ]; then - git commit -a && git push -u origin main - else - git commit -a -m "$@" && git push -u origin main - fi +function push-dconf { if command -v scpace &> /dev/null; then dconf dump / > /tmp/dconf-dump || return 1 scp -P 11275 /tmp/dconf-dump 'sage@sagev.space:~/dconf-dump' @@ -89,6 +83,15 @@ function pushdot { else echo "An alias for scpace has not been defined on this device!" fi +} + +function pushdot { + cd "$DOT_DIR" || return 1 + if [ $# -eq 0 ]; then + git commit -a && git push -u origin main && push-dconf + else + git commit -a -m "$@" && git push -u origin main && push-dconf + fi cd - }