Created
May 29, 2019 06:51
-
-
Save grisu48/d299236a801961fa4c64b47f72a7282c to your computer and use it in GitHub Desktop.
Template for my bash aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
alias killall="killall -u `whoami` -i" | |
alias weather="curl 'http://wttr.in/'" | |
ctrim() { | |
if [ $# -lt 1 ]; then | |
echo "ctrim - trim the given pictures (using convert --trim)" | |
else | |
for i in $@; do | |
convert -trim "$i" "$i" | |
done | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment