mirror of
https://github.com/Phantop/dotfiles
synced 2025-11-26 06:06:40 +00:00
Hi nix, bye appsquash, zzexe -22
This commit is contained in:
parent
e329571d47
commit
dfa0891694
|
|
@ -20,6 +20,7 @@ a imgsum 'printf "$argv: " && identify -format "%#\n"'
|
||||||
a l ls
|
a l ls
|
||||||
a la 'l -a'
|
a la 'l -a'
|
||||||
a less 'eval $PAGER'
|
a less 'eval $PAGER'
|
||||||
|
a nix 'bax . ~/.nix-profile/etc/profile.d/nix.sh; command nix'
|
||||||
a off shutdown
|
a off shutdown
|
||||||
a offh 'off (math "60*"$argv);:'
|
a offh 'off (math "60*"$argv);:'
|
||||||
a open xdg-open
|
a open xdg-open
|
||||||
|
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
mksquashfs $@ squash -comp zstd -b 1M -Xcompression-level 22
|
|
||||||
|
|
||||||
cat > script <<'EOF'
|
|
||||||
#!/bin/sh
|
|
||||||
file=$(basename $0)
|
|
||||||
DIR=/tmp/.mount_$file$RANDOM
|
|
||||||
mkdir $DIR
|
|
||||||
squashfuse -o offset=154 $0 $DIR
|
|
||||||
$DIR/AppRun $@
|
|
||||||
fusermount -uz $DIR
|
|
||||||
rmdir $DIR
|
|
||||||
exit
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat script squash > $(basename $@).sh
|
|
||||||
chmod +x $(basename $@).sh
|
|
||||||
rm script squash
|
|
||||||
|
|
@ -132,7 +132,7 @@ else
|
||||||
(exit 127); res=127
|
(exit 127); res=127
|
||||||
fi; exit $res
|
fi; exit $res
|
||||||
EOF
|
EOF
|
||||||
zstd -cv19 "$file") > "$tmp" || {
|
zstd -cv22 --ultra "$file") > "$tmp" || {
|
||||||
res=$?
|
res=$?
|
||||||
printf >&2 '%s\n' "$0: compression not possible for $i, file unchanged."
|
printf >&2 '%s\n' "$0: compression not possible for $i, file unchanged."
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue