commit 6226692bbb1296fcf120ca8aa2490cb6585885b9
parent 7e34395ad25c67c6a5613f7086fa96cb08c7aeb6
Author: Alex Balgavy <EMAIL>
Date: Wed, 9 Jan 2019 00:17:54 +0100
Changed some alias names
Former-commit-id: d5a96f01d020becceefcdac672a5e4606ddd36ed
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/shell/commonprofile b/shell/commonprofile
@@ -124,7 +124,7 @@ find_in_files() { grep -rnw "$1" -e "$2"; } # Se
hr() { for ((i=0; i<COLUMNS; i++)); do echo -n "#"; done; echo; }
# Pip3 upgrade packages
-pip3-upgrade() { pip3 list --outdated | cut -d ' ' -f1 | xargs -n1 pip3 install -U; }
+pip3_upgrade() { pip3 list --outdated | cut -d ' ' -f1 | xargs -n1 pip3 install -U; }
# Get current battery percentage
batterypct() { ioreg -l | awk '$3~/Capacity/{c[$3]=$5}END{OFMT="%.2f%%";max=c["\"MaxCapacity\""];print(max>0?100*c["\"CurrentCapacity\""]/max:"?")}' | sed 's/\..*//'; }
@@ -169,12 +169,12 @@ gemmaster() {
# Webm to mp4 video
-webm-mp4() {
+webm_mp4() {
ffmpeg -i "$1" -qscale 0 "$1".mp4
}
# Extract audio from mp4
-mp4-mp3() {
+mp4_mp3() {
ffmpeg -i "$1" "$1".mp3
}
@@ -185,7 +185,7 @@ gifify() {
}
# Gif to mp4
-gif-mp4() {
+gif_mp4() {
ffmpeg -i "$1" -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" "$(echo "$1"|cut -d. -f1).mp4"
}