Last active
September 10, 2019 13:31
-
-
Save robert-wettstaedt/f8cd3a9b570f1f57a75a 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='exa --long --all --header --git' # 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 ~/.zshenv ~/.zshrc ~/.zlogin' | |
alias pyload='python /usr/local/sbin/pyload/pyLoadCore.py' | |
twitch() { streamlink twitch.tv/"$1" "${2:-best}"; } | |
clone() { | |
git clone $1 | |
cd $(basename ${1%.*}) | |
if test -f "./package.json"; then | |
echo "..." | |
echo "Found package.json...Installing dependencies" | |
echo "..." | |
npm install | |
fi | |
} | |
# zsh specific commands | |
bindkey "^X^_" redo |
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="/usr/lib/node_modules:$NODE_PATH" | |
export PATH="/usr/local/opt/node@10/bin:$PATH" | |
export LDFLAGS="-L/usr/local/opt/node@10/lib" | |
export CPPFLAGS="-I/usr/local/opt/node@10/include" | |
# Android | |
export ANDROID_HOME="/usr/local/Caskroom/android-sdk/25.2.3" | |
export PATH="/usr/local/Caskroom/android-sdk/25.2.3/platform-tools:/usr/local/Caskroom/android-sdk/25.2.3/tools:$PATH" | |
# Bullet Train Theme | |
export TERM="xterm-256color" | |
# rust binaries | |
export PATH="$HOME/.cargo/bin:$PATH" | |
# Editor | |
export EDITOR="code -w" | |
# Anaconda | |
export PATH="/usr/local/anaconda3/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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/wettstaedt/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="bullet-train" | |
# Set list of themes to pick from when loading at random | |
# Setting this variable when ZSH_THEME=random will cause zsh to load | |
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/ | |
# If set to an empty array, this variable will have no effect. | |
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) | |
# Uncomment the following line to use case-sensitive completion. | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to use hyphen-insensitive completion. | |
# Case-sensitive completion must be off. _ and - will be interchangeable. | |
# HYPHEN_INSENSITIVE="true" | |
# Uncomment the following line to disable bi-weekly auto-update checks. | |
# DISABLE_AUTO_UPDATE="true" | |
# Uncomment the following line to automatically update without prompting. | |
# DISABLE_UPDATE_PROMPT="true" | |
# Uncomment the following line to change how often to auto-update (in days). | |
# export UPDATE_ZSH_DAYS=13 | |
# Uncomment the following line if pasting URLs and other text is messed up. | |
# DISABLE_MAGIC_FUNCTIONS=true | |
# 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. | |
# You can set one of the optional three formats: | |
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# or set a custom format using the strftime function format specifications, | |
# see 'man strftime' for details. | |
# HIST_STAMPS="mm/dd/yyyy" | |
# Would you like to use another custom folder than $ZSH/custom? | |
# ZSH_CUSTOM=/path/to/new-custom-folder | |
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh | |
# Which plugins would you like to load? | |
# Standard 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 autojump aws brew colored-man-pages colorize gitfast github history jsontools node npm osx pip pyenv python sudo vscode yarn) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
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