Fix buggeroonie

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-06-02 03:39:26 -04:00
parent 0d400d9d48
commit 64d9ae79aa
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
2 changed files with 9 additions and 9 deletions

BIN
.bashrc

Binary file not shown.

View File

@ -298,7 +298,7 @@ export GPG_TTY=$(tty)
export MANPATH=/run/current-system/profile/share/man:/home/cobra/.guix-profile/share/man:/run/current-system/profile/share/man:/home/cobra/.guix-home/profile/share/man
clear() {
printf '\033c' # faster than ncurses clear by a lot
printf '\\033c' # faster than ncurses clear by a lot
}
# Other aliases
@ -363,7 +363,7 @@ fixdh() {
strlen() {
N=$(wc -c <<< \"$*\")
((N--))
printf '%u\n' \"$N\"
printf '%u\\n' \"$N\"
}
uppweb() {
@ -379,8 +379,8 @@ caption() {
local OUT=\"$2\"
shift 2
local TEXT=\"$*\"
local WIDTH=\"$(identify -format \"%[w]\n\" \"$FILE\" | head -n1)\"
local HEIGHT=\"$(identify -format \"%[h]\n\" \"$FILE\" | head -n1)\"
local WIDTH=\"$(identify -format \"%[w]\\n\" \"$FILE\" | head -n1)\"
local HEIGHT=\"$(identify -format \"%[h]\\n\" \"$FILE\" | head -n1)\"
local FONT_SIZE=\"$(((HEIGHT+WIDTH)/20))\"
convert -gravity north \\( -size \"${WIDTH}x\" -pointsize \"$FONT_SIZE\" -font 'Liberation-Sans-Bold' caption:\"$TEXT\" -gravity Center -extent \"${WIDTH}x\" \\) \"$FILE\" -append \"$OUT\"
}
@ -411,8 +411,8 @@ topbottom() {
local FILE=\"$1\"
local OUT=\"$2\"
shift 2
local WIDTH=\"$(identify -format \"%[w]\n\" \"$FILE\" | head -n1)\"
local HEIGHT=\"$(identify -format \"%[h]\n\" \"$FILE\" | head -n1)\"
local WIDTH=\"$(identify -format \"%[w]\\n\" \"$FILE\" | head -n1)\"
local HEIGHT=\"$(identify -format \"%[h]\\n\" \"$FILE\" | head -n1)\"
local FONT_SIZE=\"$(((HEIGHT+WIDTH)/20))\"
convert -size \"${WIDTH}x\" -stroke black -strokewidth 3 -fill white -pointsize \"$FONT_SIZE\" -font 'Liberation-Sans-Bold' -gravity Center -extent \"${WIDTH}x\" -gravity north \\( -annotate +0+0 \"$1\" \\) -gravity south \\( -annotate +0+0 \"$2\" \\) \"$FILE\" -append \"$OUT\"
}
@ -439,7 +439,7 @@ subcipher() {
local COLOR PERM L1 line grep word
if [ $# -lt 3 ]; then
if [ $# -lt 2 ] || [[ \"$1\" != \"0\" && \"$1\" != \"1\" ]]; then
printf \"Usage: [0|1] subcipher file [string...]\n\"
printf \"Usage: [0|1] subcipher file [string...]\\n\"
return 1
fi
fi
@ -457,7 +457,7 @@ subcipher() {
[ $COLOR -eq 1 ] && grep=\"$(grep --color=always -xF \"$word\" /etc/dictionaries-common/words)\"
printf %s \"${grep:-$word} \"
done
printf '\n'
printf '\\n'
done
}
@ -548,7 +548,7 @@ uploadhex() {
}
gshpkg() {
local re='[\(]?\(\"([^\"]*)\"'
local re='[\\(]?\\(\"([^\"]*)\"'
if [[ \"$GUIX_ENVIRONMENT\" ]]; then
local PACKAGES=($(while read -r line; do
[[ \"$line\" =~ $re ]] && printf '%s ' \"${BASH_REMATCH[1]}\"