1
0
Fork 0

small updates

This commit is contained in:
Luca Bilke 2023-11-22 20:42:33 +01:00
parent 24061dd69c
commit 4f45fa2895
5 changed files with 16 additions and 6 deletions

View File

@ -21,7 +21,7 @@ cmd open-with ${{
cmd mkdir &mkdir -p "$(echo $* | tr ' ' '\ ')" cmd mkdir &mkdir -p "$(echo $* | tr ' ' '\ ')"
cmd extract &aunpack $fx cmd extract $aunpack $fx
cmd delete &rm -rf -- $fx cmd delete &rm -rf -- $fx
@ -32,6 +32,16 @@ cmd trash %{{
done 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 # y (select for copy) and P to paste soft-link
# d (select for cut) and P to paste hard-link # d (select for cut) and P to paste hard-link
cmd link &{{ cmd link &{{
@ -150,7 +160,7 @@ map <c-e> extract
map R rsyncto map R rsyncto
map P link map P link
# map S share # map S share
map <c-g> $lazygit map <c-g> lazygit
map <c-v> push :!$EDITOR<space> map <c-v> push :!$EDITOR<space>
map <c-n> push :mkdir<space> map <c-n> push :mkdir<space>
map <c-t> push :&touch<space> map <c-t> push :&touch<space>

View File

@ -44,7 +44,7 @@ if command -v apt 1>/dev/null 2>&1; then
arein="apt reinstall" \ arein="apt reinstall" \
aur="apt autoremove" \ aur="apt autoremove" \
aup="apt upgrade" \ aup="apt upgrade" \
ase="apt search" \ ase="\\apt search" \
ash="apt show" ash="apt show"
fi fi

View File

@ -5,8 +5,9 @@ big="\033[12m"
IFS=' IFS='
' '
types=${1:-ext2,ext3,ext4,xfs,btrfs,vfat}
first=true 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 " | " [ "$first" = "false" ] && printf " | "
eval $mnt eval $mnt
[ -d "$TARGET" ] || break [ -d "$TARGET" ] || break

@ -1 +0,0 @@
Subproject commit 8de31fd8c239a601c45dd3a507367c63fbdbe529

@ -1 +1 @@
Subproject commit 099c6a68c40789efcd3eb3854659dc7bb55583f6 Subproject commit f8c27ebf0e59cdf2536f5ba8b0019eded565a445