diff --git a/.config/nvim/lua/blake/settings.lua b/.config/nvim/lua/blake/settings.lua index 221cb73..14913cc 100644 --- a/.config/nvim/lua/blake/settings.lua +++ b/.config/nvim/lua/blake/settings.lua @@ -98,7 +98,7 @@ vim.cmd 'nnoremap l' vim.cmd "vnoremap J :m '>+1gv=gv" vim.cmd "vnoremap K :m '<-2gv=gv" --- Correct words with Q, rather than z= +-- Spell correct with Q, rather than z= vim.cmd 'nnoremap Q z=' ---------------------------------------------- diff --git a/.config/shell/bin/ned b/.config/shell/bin/ned index 82df7e1..ce0f985 100755 --- a/.config/shell/bin/ned +++ b/.config/shell/bin/ned @@ -74,7 +74,7 @@ new() { if [ -z "$NOTE_PATH" ]; then echo "No directories found for '$2'." echo "All possible directories:" - (cd "$NOTES_DIR" && fd -d 1 -t d "$NOTES_DIR") + (cd "$NOTES_DIR" && fd -d 1 -t d) exit # if there was more than one result @@ -114,6 +114,7 @@ new() { } subshell() { + echo echo 'entering subshell' $SHELL } diff --git a/.config/shell/bin/pandoc-md b/.config/shell/bin/pandoc-md new file mode 100755 index 0000000..e10e733 --- /dev/null +++ b/.config/shell/bin/pandoc-md @@ -0,0 +1,6 @@ +#!/bin/bash +if [ -f "$1.md" ]; then + pandoc -s "$1.md" -o "$1.html" +else + echo "Please specify a file name (without the .md extension)" +fi diff --git a/.config/shell/functions/log b/.config/shell/functions/log new file mode 100644 index 0000000..e5d990f --- /dev/null +++ b/.config/shell/functions/log @@ -0,0 +1,6 @@ +#!/bin/bash + +# edit the system log located in the docs repo, but also find the docs repo based on what ~/todo points to +log() { + $EDITOR "$(git -C "$(dirname "$(realpath ~/todo)")" rev-parse --show-toplevel)/system-log" +} diff --git a/.config/termux/colors.properties b/.config/termux/colors.properties old mode 100755 new mode 100644 diff --git a/.config/termux/termux.properties b/.config/termux/termux.properties old mode 100755 new mode 100644 index f3ec189..1308931 --- a/.config/termux/termux.properties +++ b/.config/termux/termux.properties @@ -9,6 +9,7 @@ extra-keys = [ \ # remove home and end, move control and alt to the left +allow-external-apps = true ############### # Extra keys diff --git a/.gitconfig b/.gitconfig index f7b1d7a..34be9d3 100644 --- a/.gitconfig +++ b/.gitconfig @@ -17,6 +17,7 @@ ca = commit -a caam = commit -a --amend cam = commit --amend + caps = !git commit -a && git push ch = checkout d = diff lg = log diff --git a/.zshrc b/.zshrc index d4bdfa2..55e1ac5 100644 --- a/.zshrc +++ b/.zshrc @@ -144,7 +144,7 @@ dupd='docker-compose up -d' \ ddwn='docker-compose down' \ dc='docker-compose' \ - occ='docker exec -it nextcloud occ' \ + occ='docker exec -u www-data nextcloud php occ' \ # file copying with a progress bar alias cpv="rsync -ah --info=progress2" @@ -563,7 +563,7 @@ add-zsh-hook chpwd save_working_dir load_working_dir && cd - > /dev/null # Case insensitive globbing (fix for termux) -[ -n "$TERMUX_VERSION" ] && setopt nocaseglob +[ -n "$TERMUX_VERSION" ] && (setopt nocaseglob; zstyle ':completion:*' path-completion true) # <<< # <<<