dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 17bc5f457203b7a5bef0895d4422fcde9b3a06fe
parent e3f463c1414f1bdb5e1299fc336a8154ddb29f5d
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Sat, 14 Apr 2018 20:31:50 +0200

Reindented functions in common profile

Diffstat:
M.commonprofile | 74+++++++++++++++++++++++++++++++++++++-------------------------------------
1 file changed, 37 insertions(+), 37 deletions(-)

diff --git a/.commonprofile b/.commonprofile @@ -40,64 +40,64 @@ pip3-upgrade() { } notify() { - terminal-notifier -title "Task Finished" -message "Done" + terminal-notifier -title "Task Finished" -message "Done" } brewmaster() { - brew update; - brew update; - { brew outdated; brew cask outdated; } | less; - brew upgrade; - brew cask upgrade; - brew cleanup -s; - brew cask cleanup; - brew prune; - brew doctor; - notify; + brew update; + brew update; + { brew outdated; brew cask outdated; } | less; + brew upgrade; + brew cask upgrade; + brew cleanup -s; + brew cask cleanup; + brew prune; + brew doctor; + notify; } gemmaster() { - gem update; - gem update rails; - gem cleanup; + gem update; + gem update rails; + gem cleanup; } webmTOmp4() { - ffmpeg -i "$1" -qscale 0 "$1".mp4 + ffmpeg -i "$1" -qscale 0 "$1".mp4 } mp4TOmp3() { - ffmpeg -i "$1" "$1".mp3 + ffmpeg -i "$1" "$1".mp3 } gifify() { - ffmpeg -i $1 -r 25 -f image2pipe -vcodec ppm - | \ - convert -delay 4 -loop 0 - output.gif + ffmpeg -i $1 -r 25 -f image2pipe -vcodec ppm - | \ + convert -delay 4 -loop 0 - output.gif } extract () { - if [ -f $1 ] ; then - case $1 in - *.tar.bz2) tar xjf $1 ;; - *.tar.gz) tar xzf $1 ;; - *.bz2) bunzip2 $1 ;; - *.rar) unrar e $1 ;; - *.gz) gunzip $1 ;; - *.tar) tar xf $1 ;; - *.tbz2) tar xjf $1 ;; - *.tgz) tar xzf $1 ;; - *.zip) unzip $1 ;; - *.Z) uncompress $1 ;; - *.7z) 7z x $1 ;; - *) echo "'$1' cannot be extracted via extract()" ;; - esac - else - echo "'$1' is not a valid file" - fi + if [ -f $1 ] ; then + case $1 in + *.tar.bz2) tar xjf $1 ;; + *.tar.gz) tar xzf $1 ;; + *.bz2) bunzip2 $1 ;; + *.rar) unrar e $1 ;; + *.gz) gunzip $1 ;; + *.tar) tar xf $1 ;; + *.tbz2) tar xjf $1 ;; + *.tgz) tar xzf $1 ;; + *.zip) unzip $1 ;; + *.Z) uncompress $1 ;; + *.7z) 7z x $1 ;; + *) echo "'$1' cannot be extracted via extract()" ;; + esac + else + echo "'$1' is not a valid file" + fi } current_wifi_password() { - security find-generic-password -ga "$1" | grep password + security find-generic-password -ga "$1" | grep password } cdf() {