migrating all my scripts to zsh

This commit is contained in:
whiteline 2023-04-09 13:14:40 +02:00
parent 3020a3007a
commit d7ca2cf1ee
12 changed files with 12 additions and 12 deletions

View File

@ -1,2 +1,2 @@
#!/bin/bash #!/bin/zsh
sudo nmap minecraft.youdieifyou.work -PN -n -sV -p minecraft sudo nmap minecraft.youdieifyou.work -PN -n -sV -p minecraft

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/zsh
BATTERY_PATH="/sys/class/power_supply/BAT1" BATTERY_PATH="/sys/class/power_supply/BAT1"
watch -tn 1 "cat $BATTERY_PATH/status && cat $BATTERY_PATH/capacity" watch -tn 1 "cat $BATTERY_PATH/status && cat $BATTERY_PATH/capacity"

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/zsh
highlight -O ansi $1 | less -R highlight -O ansi $1 | less -R

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/zsh
#xrdb -merge ~/.Xresources.green #xrdb -merge ~/.Xresources.green
urxvt -fn xft:inconsolata-26:hinting=false -letsp 1 -im none -b 26 & urxvt -fn xft:inconsolata-26:hinting=false -letsp 1 -im none -b 26 &
#xrdb -merge ~/.Xresources #xrdb -merge ~/.Xresources

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/zsh
newgrp no-internet newgrp no-internet

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/zsh
xinput --float `xinput | grep "$1" | grep -o 'id=[[:digit:]]\+' | cut -d'=' -f2` xinput --float `xinput | grep "$1" | grep -o 'id=[[:digit:]]\+' | cut -d'=' -f2`

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/zsh
age -d gitlab.lain.la.token.encrypted | oathtool -b --totp - age -d gitlab.lain.la.token.encrypted | oathtool -b --totp -

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/zsh
ruby -run -e httpd . -p 8080 --bind-address=192.168.1.2 ruby -run -e httpd . -p 8080 --bind-address=192.168.1.2

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/zsh
exec mpv https://lainchan.org:8080/hls/stream.m3u8 exec mpv https://lainchan.org:8080/hls/stream.m3u8

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/zsh
curl wttr.in/`echo $* | sed 's/ /%20/g'` curl wttr.in/`echo $* | sed 's/ /%20/g'`

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/zsh
yt-dlp --extract-audio --audio-format mp3 -f best -o "%(playlist_index)s - %(title)s.%(ext)s" $1 yt-dlp --extract-audio --audio-format mp3 -f best -o "%(playlist_index)s - %(title)s.%(ext)s" $1

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/zsh
yt-dlp --extract-audio --split-chapters --audio-format mp3 -f best -o "chapter:%(section_number)s - %(section_title)s.%(ext)s" $1 yt-dlp --extract-audio --split-chapters --audio-format mp3 -f best -o "chapter:%(section_number)s - %(section_title)s.%(ext)s" $1