From 3b4eb3efb692aa4d19a1e2c30c2ed9a65e9c7d8c Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Sat, 7 Jun 2014 15:59:44 +0200 Subject: =?UTF-8?q?Remove=20some=20things=20that=20I=20don=E2=80=99t=20use?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit drops some aliases, functions, and settings from the project that I wasn’t using at all. It also cleans up some of the remaining code. --- .aliases | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to '.aliases') diff --git a/.aliases b/.aliases index bdac6b3..db4d8e9 100644 --- a/.aliases +++ b/.aliases @@ -38,9 +38,6 @@ export LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40 # Enable aliases to be sudo’ed alias sudo='sudo ' -# Gzip-enabled `curl` -alias gurl='curl --compressed' - # Get week number alias week='date +%V' @@ -78,9 +75,9 @@ command -v md5sum > /dev/null || alias md5sum="md5" command -v sha1sum > /dev/null || alias sha1sum="shasum" # JavaScriptCore REPL -jscbin="/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc" -[ -e "${jscbin}" ] && alias jsc="${jscbin}" -unset jscbin +jscbin="/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc"; +[ -e "${jscbin}" ] && alias jsc="${jscbin}"; +unset jscbin; # Trim new lines and copy to clipboard alias c="tr -d '\n' | pbcopy" @@ -88,9 +85,6 @@ alias c="tr -d '\n' | pbcopy" # Recursively delete `.DS_Store` files alias cleanup="find . -type f -name '*.DS_Store' -ls -delete" -# ROT13-encode text. Works for decoding, too! ;) -alias rot13='tr a-zA-Z n-za-mN-ZA-M' - # Empty the Trash on all mounted volumes and the main HDD # Also, clear Apple’s System Logs to improve shell startup speed alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl" @@ -138,7 +132,6 @@ command -v grunt > /dev/null && alias grunt="grunt --stack" # Stuff I never really use but cannot delete either because of http://xkcd.com/530/ alias stfu="osascript -e 'set volume output muted true'" alias pumpitup="osascript -e 'set volume 7'" -alias hax="growlnotify -a 'Activity Monitor' 'System error' -m 'WTF R U DOIN'" # Kill all the tabs in Chrome to free up memory # [C] explained: http://www.commandlinefu.com/commands/view/402/exclude-grep-from-your-grepped-output-of-ps-alias-included-in-description @@ -150,5 +143,5 @@ alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resource # Reload the shell (i.e. invoke as a login shell) alias reload="exec $SHELL -l" -# Faster npm for europeans -command -v npm > /dev/null && alias npme="npm --registry http://registry.npmjs.eu" +# Faster npm for Europeans +command -v npm > /dev/null && alias npme="npm --registry http://registry.npmjs.eu/" -- cgit v1.2.3