From 076362fd808810bcf1380eef364aaf31d2555b9b Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Wed, 15 Sep 2021 10:06:18 -0700 Subject: [PATCH 1/3] QOL improvements --- .zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 91c1c14..20bbaa6 100644 --- a/.zshrc +++ b/.zshrc @@ -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" \ @@ -317,6 +317,7 @@ echo 'Error: Could not `cd` into the repo' return 1 fi + ls } calc() { From 6658296ef92fd511ee85fe7a5d5e98aaf804f8a3 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Wed, 15 Sep 2021 21:38:22 -0700 Subject: [PATCH 2/3] improvements to todo() --- .zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 20bbaa6..502b299 100644 --- a/.zshrc +++ b/.zshrc @@ -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 From ab46fcd6da667c90192f5aa2c5fc10ef3f959440 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Wed, 15 Sep 2021 21:39:21 -0700 Subject: [PATCH 3/3] added markdown preview plugin --- .config/nvim/lua/plugins.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 0f80237..3caaea6 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -141,6 +141,10 @@ return require('packer').startup(function() require('other').autosession() end } + use { + 'ellisonleao/glow.nvim', + ft = { 'md', 'markdown', } + } -- Conveniences use { -- Undo tree