small updates
This commit is contained in:
parent
24061dd69c
commit
4f45fa2895
|
@ -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 <c-e> extract
|
|||
map R rsyncto
|
||||
map P link
|
||||
# map S share
|
||||
map <c-g> $lazygit
|
||||
map <c-g> lazygit
|
||||
map <c-v> push :!$EDITOR<space>
|
||||
map <c-n> push :mkdir<space>
|
||||
map <c-t> push :&touch<space>
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 8de31fd8c239a601c45dd3a507367c63fbdbe529
|
|
@ -1 +1 @@
|
|||
Subproject commit 099c6a68c40789efcd3eb3854659dc7bb55583f6
|
||||
Subproject commit f8c27ebf0e59cdf2536f5ba8b0019eded565a445
|
Loading…
Reference in New Issue