-
-
Save stvhwrd/88dea38a7e467f57fd9f to your computer and use it in GitHub Desktop.
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
# | |
# Executes commands at the start of an interactive session. | |
# | |
# Authors: | |
# Sorin Ionescu <sorin.ionescu@gmail.com> | |
# Stevie Howard <stvhwrd@outlook.com> | |
# Source Prezto. | |
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" | |
fi | |
# User configuration | |
export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH" | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# You may need to manually set your language environment | |
# export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
if [[ -n $SSH_CONNECTION ]]; then | |
export EDITOR='vim' | |
else | |
export EDITOR='subl' | |
fi | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# ssh | |
# export SSH_KEY_PATH="~/.ssh/dsa_id" | |
# Set personal aliases, overriding those provided by oh-my-zsh libs, | |
# plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
# users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
# For a full list of active aliases, run `alias`. | |
# | |
# open VLC | |
alias vlc='/Applications/VLC.app/Contents/MacOS/VLC' | |
# show or hide "hidden" files | |
alias showfiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app' | |
alias hidefiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app' | |
# /r/NHLstreams setup | |
alias hockey="sudo java -jar ~/Documents/FuckNeulionV2.3.jar" | |
alias hockeylive="sudo python3 ~/Documents/nhlstreams.py" | |
alias hockeyreplay="sudo python3 ~/Documents/nhlreplays.py" | |
# open or close spotify and its associated programs for notifications and ad muting | |
# alias spotify="open ~/Applications/Spotify.app ~/Applications/Spotifree.app ~/Applications/Spotify\ Notifications.app" | |
alias spotify="open ~/Applications/Spotify.app ~/Applications/Spotify\ Notifications.app" | |
alias stopify="killall Spotify Spotifree Spotify\ Notifications SpotifyWebHelper" | |
# close unnecessary hidden apps running from startup | |
alias cleanup="killall cDock\ Agent Karabiner_AXNotifier SpotifyWebHelper" | |
# refresh launchpad | |
alias refresh_launchpad='defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock; sleep 2; rm ~/Library/Application\ Support/Dock/*.db; killall Dock' | |
# git push origin master | |
alias gpom="git push origin master" | |
# hockey scores | |
alias scores='python ~/GitHub/Ticker/ticker.py' | |
# download website in current folder | |
alias website-dl='wget --limit-rate=200k --no-clobber --convert-links --random-wait -r -p -E -e robots=off -U mozilla' | |
# update homebrew and upgrade all packages | |
alias bubu='brew update; brew upgrade --all' | |
# mount and unmount storageHDD | |
alias mount_storage='diskutil mountDisk /dev/disk1' | |
alias eject_storage='diskutil eject /Volumes/storageHDD' | |
# start sickrage | |
alias sickrage='cd /tmp/; /Applications/SickRage/SickBeard.py &; cd;' | |
# convert all mkv files in folder to mp4 | |
alias convert_mkv_to_mp4='for i in $(ls *mkv); do ffmpeg -i '$i' -vcodec copy -acodec copy $i.mp4; done;' | |
# hub - the command line wrapper for git | |
eval "$(hub alias -s)" | |
# killall (since I spell it wrong so often) | |
alias ka='killall' | |
# matrix mode to impress pseudo-geeks | |
alias matrix='LC_ALL=C tr -c "[:digit:]" " " < /dev/urandom | dd cbs=$COLUMNS conv=unblock | GREP_COLOR="1;32" grep --color "[^ ]"' | |
# avoid pesky user install location | |
export HOMEBREW_CASK_OPTS=--appdir=/Applications | |
# express API token to avoid API call cap | |
export HOMEBREW_GITHUB_API_TOKEN=c87bd0f3d3768aac8b93275b30e70ca7dfba5287 | |
### Added by the Heroku Toolbelt | |
export PATH="/usr/local/heroku/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment