-
Notifications
You must be signed in to change notification settings - Fork 151
/
Copy path.zshrc
63 lines (56 loc) · 1.98 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Plain Aliases
alias j="z"
alias vi="nvim"
alias theme="nvim ~/.zprezto/modules/prompt/functions/prompt_dougblack_setup"
alias va=". venv/bin/activate"
alias da="deactivate"
alias reload="source ~/.zshrc"
alias nopyc="find . -name '*.pyc' | xargs rm -f || true"
alias ll="ls -la"
alias sum="paste -sd+ - | bc"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias colors='for code in {0..255}; do echo -e "\e[38;05;${code}m $code: test"; done'
alias today='vi ~/notes/today/$(date "+%Y-%m-%d").md'
alias yesterday='vi ~/notes/today/$(ls ~/notes/today | sort | tail -n 1)'
alias clean="git reset --hard HEAD && git clean -df"
alias viminit="vi ~/.config/nvim/init.lua"
alias vimplug="vi ~/.config/nvim/lua/plugins.lua"
# Git Aliases
alias add="git add -A"
alias amend="git commit --amend"
alias b="git branch"
alias branch="git branch"
alias commit="git commit"
alias check="git checkout"
alias diff="git diff --color"
alias fetch="git fetch origin master"
alias gs="git status --short"
alias llog=". ~/.githelpers && pretty_git_log"
alias log=". ~/.githelpers && pretty_git_log | head -n 10"
alias master="git checkout master"
alias pull="git pull origin master"
alias push="git push origin master"
alias remotes="git remote -v | ag fetch | sed 's/(fetch)//g' | tr '\t' ' ' | column -t"
alias show="git show"
alias staged="git diff --staged"
alias stash="git stash"
alias work="vi ~/work.md"
. /Users/doug/code/bin/z.sh
# Exports
export PATH="/usr/local/bin:/Users/doug/.local/bin:$PATH"
eval $(/usr/libexec/path_helper -s)
export PROMPT="%T %~ $ "
# NVM
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# PyEnv
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"