Format with shfmt

This commit is contained in:
Andreas Zweili 2024-03-18 22:37:42 +01:00
parent 57439a61bc
commit c18dee7068
5 changed files with 9 additions and 11 deletions

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash
echo "start signal"
nohup signal-desktop --use-tray-icon --no-sandbox > ~/.local/share/nohup.out &
nohup signal-desktop --use-tray-icon --no-sandbox >~/.local/share/nohup.out &

View File

@ -1,2 +1,2 @@
#!/usr/bin/env bash
for i in $( ls | grep [A-Z] ); do mv -i $i `echo $i | tr 'A-Z' 'a-z'`; done
for i in $(ls | grep [A-Z]); do mv -i $i $(echo $i | tr 'A-Z' 'a-z'); done

View File

@ -1,6 +1,5 @@
#!/usr/bin/env bash
find . -print | while read file
do
file_clean=${file//[ ()&\'\,]/_}
mv "$file" "$file_clean"
find . -print | while read file; do
file_clean=${file//[ ()&\'\,]/_}
mv "$file" "$file_clean"
done

View File

@ -1,9 +1,9 @@
#!/usr/bin/env bash
function replace-listings(){
function replace-listings() {
sed -i -e 's/end{lstlisting}/end{sexylisting}/g' $1
for fn in `grep 'begin{lstlisting}' $1`; do
for fn in $(grep 'begin{lstlisting}' $1); do
caption=$(grep -m 1 -B 1 -P 'begin{lstlisting}' $1 |
grep -oP 'caption={\K[^\}]+')
grep -oP 'caption={\K[^\}]+')
sed -i "0,/begin{lstlisting}/ s/{lstlisting}/{sexylisting}{$caption}/" $1
done
}

View File

@ -1,8 +1,7 @@
#!/usr/bin/env bash
scripts=$(ls -1 ~/.config/qtile/autostart.d/*.sh)
for i in $scripts
do
for i in $scripts; do
source $i
done
echo "Finished qtile autostart"