-
-
Save techieimposter/0cde1a2980bc3d12c1871825f3a59092 to your computer and use it in GitHub Desktop.
Dotfiles
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
alias cp='cp -iv' # Preferred 'cp' implementation | |
alias mv='mv -iv' # Preferred 'mv' implementation | |
mkdir() { command mkdir -pv "$1" && cd "$1"; } # Preferred 'mkdir' implementation | |
alias l='ls -FGlahp' # Preferred 'ls' implementation | |
alias less='less -FSRXc' # Preferred 'less' implementation | |
cd() { builtin cd "$@"; l; pwd; } # Always list directory contents upon 'cd' | |
alias ..='cd ../' # Go back 1 directory level | |
alias .1='cd ../' # Go back 1 directory level | |
alias .2='cd ../../' # Go back 2 directory levels | |
alias .3='cd ../../../' # Go back 3 directory levels | |
alias .4='cd ../../../../' # Go back 4 directory levels | |
alias .5='cd ../../../../../' # Go back 5 directory levels | |
alias .6='cd ../../../../../../' # Go back 6 directory levels | |
alias f='open -a Finder ./' # f: Opens current directory in MacOS Finder | |
alias w='cd ~/workspaces' | |
alias ~="cd ~" # ~: Go Home | |
trash () { command mv "$@" ~/.Trash ; } # trash: Moves a file to the MacOS trash | |
ql () { qlmanage -p "$*" >& /dev/null; } # ql: Opens any file in MacOS Quicklook Preview | |
alias myip='curl ip.appspot.com' # myip: Public facing IP Address | |
alias chr='open -a Google\ Chrome --args --disable-web-security' # open Chrome with disable-web-security | |
alias fuck='sudo $(history -p \!\!)' # fuck: Recalls last statement with sudo statement | |
alias killdock='killall -KILL Dock' | |
alias resource='source ~/.zshrc ~/.zprofile' | |
alias pyload='python /usr/local/sbin/pyload/pyLoadCore.py' | |
twitch() { streamlink twitch.tv/"$1" "${2:-best}"; } |
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
export PATH=/usr/local/sbin:$PATH | |
# Java | |
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home" | |
# Localisation | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
# Node | |
NODE_PATH="/usr/local/lib/node_modules" | |
export NODE_PATH=$NODE_PATH:/usr/lib/node_modules | |
# Ruby / Rails | |
export RAILS_ENV=development | |
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
# Android | |
export ANDROID_HOME=/usr/local/Caskroom/android-sdk/25.2.3 | |
export PATH=${PATH}:/usr/local/Caskroom/android-sdk/25.2.3/platform-tools:/usr/local/Caskroom/android-sdk/25.2.3/tools | |
# Used by LaTeX | |
eval `/usr/libexec/path_helper -s` | |
export PYTHONPATH=$PYTHONPATH:/Users/wettstaedt/workspaces/master-thesis/openpose/build/python/openpose | |
# Bullet Train Theme | |
export TERM="xterm-256color" | |
# anaconda binaries | |
export PATH="/Library/Anaconda/bin:$PATH" | |
. /Library/Anaconda/etc/profile.d/conda.sh | |
# rust binaries | |
export PATH="$HOME/.cargo/bin:$PATH" |
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
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="bullet-train" | |
# Uncomment the following line to use case-sensitive completion. | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to disable bi-weekly auto-update checks. | |
# DISABLE_AUTO_UPDATE="true" | |
# Uncomment the following line to change how often to auto-update (in days). | |
# export UPDATE_ZSH_DAYS=13 | |
# Uncomment the following line to disable colors in ls. | |
# DISABLE_LS_COLORS="true" | |
# Uncomment the following line to disable auto-setting terminal title. | |
# DISABLE_AUTO_TITLE="true" | |
# Uncomment the following line to enable command auto-correction. | |
# ENABLE_CORRECTION="true" | |
# Uncomment the following line to display red dots whilst waiting for completion. | |
COMPLETION_WAITING_DOTS="true" | |
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# Uncomment the following line if you want to change the command execution time | |
# stamp shown in the history command output. | |
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# HIST_STAMPS="mm/dd/yyyy" | |
# Would you like to use another custom folder than $ZSH/custom? | |
# ZSH_CUSTOM=/path/to/new-custom-folder | |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=(adb brew cargo gitfast node npm osx pip pyvenv python rust sudo vscode) | |
source $ZSH/oh-my-zsh.sh | |
source $ZSH/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
source $HOME/.bashrc | |
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment