From 99470780ca5f7e295edf2064200b2eadcefe2f33 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Tue, 3 Jan 2023 22:35:46 +0100 Subject: [PATCH] bin: update shortcuts --- .config/shell/debian | 2 +- .config/shell/graphical | 3 +-- .local/bin/scripts/git-grab | 2 ++ .local/bin/scripts/nomedia | 2 ++ 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100755 .local/bin/scripts/git-grab create mode 100755 .local/bin/scripts/nomedia diff --git a/.config/shell/debian b/.config/shell/debian index b987fca..9d78c9d 100644 --- a/.config/shell/debian +++ b/.config/shell/debian @@ -9,7 +9,7 @@ snapinstall() { } alias aptupdate='sudo apt-get update' -alias aptremove='sudo apt-get remove' +alias aptremove='sudo apt-get remove --autoremove' alias aptpurge='sudo apt-get purge --autoremove' alias aptclean='sudo apt-get clean && sudo apt-get autoremove' upgrade() { diff --git a/.config/shell/graphical b/.config/shell/graphical index 0d5897d..b364377 100644 --- a/.config/shell/graphical +++ b/.config/shell/graphical @@ -4,10 +4,9 @@ command -v notify-send >/dev/null && if which jrnl >/dev/null; then alias j='jrnl' - jn() { jrnl -to today "$@" | less +G; } + jn() { jrnl -to today "$@" | less --exit-follow-on-close +F; } alias jnc='jn -contains' alias jne='jrnl --edit' - # TODO jump to end fi test "$DISPLAY" || return 0 diff --git a/.local/bin/scripts/git-grab b/.local/bin/scripts/git-grab new file mode 100755 index 0000000..a4e3dbf --- /dev/null +++ b/.local/bin/scripts/git-grab @@ -0,0 +1,2 @@ +#!/bin/sh +curl --location $1.patch | git am diff --git a/.local/bin/scripts/nomedia b/.local/bin/scripts/nomedia new file mode 100755 index 0000000..ff9c905 --- /dev/null +++ b/.local/bin/scripts/nomedia @@ -0,0 +1,2 @@ +#!/bin/sh +find -type d -exec touch {}/.nomedia \;