1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 23:04:22 +00:00

Update to the latest fish scripts

This commit is contained in:
Steffo 2020-12-05 09:14:45 +01:00
parent 560408379b
commit 1c5ee113bb
4 changed files with 17 additions and 0 deletions

3
functions/resolvify.fish Normal file
View file

@ -0,0 +1,3 @@
function resolvify
ffmpeg -i "$argv[1]" -vcodec dnxhd -b:v 36M -acodec pcm_s16le -f mov "$argv[1].dnxhd.mov"
end

View file

@ -0,0 +1,4 @@
# Defined in - @ line 1
function restart-royalnet --wraps='ssh combo.steffo.eu sudo systemctl restart bot-royalnet' --description 'alias restart-royalnet ssh combo.steffo.eu sudo systemctl restart bot-royalnet'
ssh combo.steffo.eu sudo systemctl restart bot-royalnet $argv;
end

6
functions/stripbase.fish Normal file
View file

@ -0,0 +1,6 @@
function stripbase
for file in *
set truename (string split -m1 " " "$file")[2]
mv "$file" "$truename"
end
end

View file

@ -0,0 +1,4 @@
# Defined in - @ line 1
function ytdl-unimore --wraps='youtube-dl --cookies ~/.cookies.Unimore.txt' --description 'alias ytdl-unimore youtube-dl --cookies ~/.cookies.Unimore.txt'
youtube-dl --cookies ~/.cookies.Unimore.txt $argv;
end