Merge branch 'master' of ssh://git.blakenorth.net:6102/home/git/dotfiles

This commit is contained in:
PowerUser64 2021-09-15 21:43:03 -07:00
commit 8e77bfcd60
2 changed files with 10 additions and 2 deletions

View file

@ -153,6 +153,10 @@ return require('packer').startup(function()
require('other').autosession()
end
}
use {
'ellisonleao/glow.nvim',
ft = { 'md', 'markdown', }
}
-- Conveniences
use { -- Undo tree

8
.zshrc
View file

@ -85,7 +85,7 @@
# Edit config files
alias \
nvc="(cd ~/.config/nvim && nvim)" \
nvc="(cd ~/.config/nvim/lua && nvim)" \
zshrc="$EDITOR ~/.zshrc" \
fstab="sudo $EDITOR /etc/fstab" \
@ -158,9 +158,12 @@
# an improved way to manage the todo list
todo() {
(
cd "$(dirname "$(realpath ~/todo)")"
test -d .git || git rev-parse --git-dir > /dev/null 2>&1 && echo 'pulling repository' && git pull
# only pull the repo if there is some argument
[ -z "$1" ] || test -d .git || git rev-parse --git-dir > /dev/null 2>&1 && echo 'pulling repository' && git pull
"$EDITOR" ~/todo
)
}
# Simple extraction script. Taken from manjaro's .bashrc
@ -317,6 +320,7 @@
echo 'Error: Could not `cd` into the repo'
return 1
fi
ls
}
calc() {