diff --git a/.config/lf/lfrc b/.config/lf/lfrc index bfc58fecd..41e77daf5 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -21,7 +21,7 @@ cmd open-with ${{ cmd mkdir &mkdir -p "$(echo $* | tr ' ' '\ ')" -cmd extract &aunpack $fx +cmd extract $aunpack $fx cmd delete &rm -rf -- $fx @@ -32,6 +32,16 @@ cmd trash %{{ done }} +cmd lazygit ${{ + clear + if [ ! -e "$PWD/.git" ]; then + echo "Not in a git repository. Create a new git repository? (y/n): " + [ $(echo "y\nn" | fzf) = "y" ] && git init && lazygit -p $PWD + else + lazygit -p $PWD + fi +}} + # y (select for copy) and P to paste soft-link # d (select for cut) and P to paste hard-link cmd link &{{ @@ -150,7 +160,7 @@ map extract map R rsyncto map P link # map S share -map $lazygit +map lazygit map push :!$EDITOR map push :mkdir map push :&touch diff --git a/.config/zsh/configs/aliases b/.config/zsh/configs/aliases index 5c394cbf5..e13bb5e28 100644 --- a/.config/zsh/configs/aliases +++ b/.config/zsh/configs/aliases @@ -44,7 +44,7 @@ if command -v apt 1>/dev/null 2>&1; then arein="apt reinstall" \ aur="apt autoremove" \ aup="apt upgrade" \ - ase="apt search" \ + ase="\\apt search" \ ash="apt show" fi diff --git a/.local/bin/statusbar/sb-disk b/.local/bin/statusbar/sb-disk index 0a035aee5..43e5e0a48 100755 --- a/.local/bin/statusbar/sb-disk +++ b/.local/bin/statusbar/sb-disk @@ -5,8 +5,9 @@ big="\033[12m" IFS=' ' +types=${1:-ext2,ext3,ext4,xfs,btrfs,vfat} first=true -for mnt in $(findmnt --real -Py -t ext2,ext3,ext4,xfs,btrfs,vfat); do +for mnt in $(findmnt -Py -t $types); do [ "$first" = "false" ] && printf " | " eval $mnt [ -d "$TARGET" ] || break diff --git a/.local/src/dwmblocks b/.local/src/dwmblocks deleted file mode 160000 index 8de31fd8c..000000000 --- a/.local/src/dwmblocks +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8de31fd8c239a601c45dd3a507367c63fbdbe529 diff --git a/.local/src/dwmblocks-async b/.local/src/dwmblocks-async index 099c6a68c..f8c27ebf0 160000 --- a/.local/src/dwmblocks-async +++ b/.local/src/dwmblocks-async @@ -1 +1 @@ -Subproject commit 099c6a68c40789efcd3eb3854659dc7bb55583f6 +Subproject commit f8c27ebf0e59cdf2536f5ba8b0019eded565a445