Add vert resize maps to vimrc
Don't push-dconf if git commit or push fails
This commit is contained in:
parent
9005e60661
commit
d4b25e227e
|
@ -31,6 +31,9 @@ set srr=>
|
|||
nnoremap <Leader>w yiw:w<CR>q:PIr! /home/sage/.shell_aliases wf <CR>yyuq:PIe <ESC><CR>
|
||||
nnoremap <Leader>s yiw:w<CR>q:PIr! /home/sage/.shell_aliases wf <CR>yyuq:PIvsp <ESC><CR>
|
||||
|
||||
nnoremap <Leader>. :vert resize +4<CR>
|
||||
nnoremap <Leader>, :vert resize -4<CR>
|
||||
|
||||
" " Auto open NERDTree but focus editing window
|
||||
" autocmd VimEnter * NERDTree
|
||||
" autocmd BufEnter * NERDTreeMirror
|
||||
|
|
|
@ -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 -
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue