From 254f12fac62aa5d2ba7d220eec1e3625be603dac Mon Sep 17 00:00:00 2001 From: Akemi Izuko Date: Sun, 27 Nov 2022 22:50:58 -0700 Subject: [PATCH] Minor: add vifm and bash shortcuts --- bash/.bash_aliases | 1 + vifm/vifmrc | 3 +++ 2 files changed, 4 insertions(+) diff --git a/bash/.bash_aliases b/bash/.bash_aliases index 639f6f2..9703ea9 100644 --- a/bash/.bash_aliases +++ b/bash/.bash_aliases @@ -30,6 +30,7 @@ alias ed="ed -p '> :'" alias ra='rg --no-ignore -.' alias ee='exit' alias ffprobe='ffprobe -hide_banner' +alias shm='cd /dev/shm' # =================================================================== diff --git a/vifm/vifmrc b/vifm/vifmrc index 6b66125..9a967e4 100644 --- a/vifm/vifmrc +++ b/vifm/vifmrc @@ -152,6 +152,9 @@ nnoremap m :sync %d nnoremap orestore :!git restore %c nnoremap oadd :!git add %c + " Make and navigate to a directory in the other pane +command! cddir :sync! | exe 'wincmd w' | mkdir "%d/%a" | cd "%d/%a" | exe 'wincmd w' + "command! pngcopy :!osascript -e 'set the clipboard to (read (POSIX file "'.%c.'") as PNG picture)' " ===================================================================