-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.zshrc
113 lines (95 loc) · 4.26 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# 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="agnoster"
DEFAULT_USER=jay
# Uncomment the following line to use case-sensitive completion.
CASE_SENSITIVE="true"
# Uncomment the following line to display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
# 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=(git vi-mode)
# User configuration
export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl"
# Add npm & pip to path
export PATH="$PATH:$HOME/.node_modules/bin:$HOME/.local/bin"
export npm_config_prefix=~/.node_modules
# setup cargo
export PATH="$PATH:$HOME/.cargo/bin"
export QT_QPA_PLATFORMTHEME="gtk2"
source $ZSH/oh-my-zsh.sh
source /usr/bin/aws_zsh_completer.sh
autoload -Uz compinit
compinit
export EDITOR='vim'
export VISUAL=$EDITOR
export JAVA_HOME=/usr
# Compilation flags
#export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"
#
export GPG_TTY=$(tty)
# rbenv
eval "$(rbenv init -)"
# For a full list of active aliases, run `alias`.
# Aliases
alias logs="journalctl -xfb"
alias mpa="mpv --no-video"
alias n64=mupen64plus
alias ta="tmux attach-session"
alias tmux-resurrect="~/dotfiles/scripts/tmux-resurrect.sh"
alias net-reset="sudo systemctl restart NetworkManager.service"
alias net-test="ping archlinux.org"
alias system-update="~/dotfiles/scripts/system_update.sh"
alias tres="~/dotfiles/scripts/tmux-resurrect.sh"
alias tmux2="tmux new-session -t d3v -s d3v2"
alias sup="~/dotfiles/scripts/system_update.sh"
alias poff="poweroff"
alias homestead='function __homestead() { (cd ~/Dev/homestead && vagrant $*); unset -f __homestead; }; __homestead'
alias huhs="homestead up;homestead ssh"
alias hrhs="homestead reload;homestead ssh"
alias pat='php artisan tinker'
alias pam='php artisan migrate'
alias pamr='php artisan migrate:rollback --step=1'
alias pamf='php artisan migrate:fresh --seed'
alias pac='php artisan cache:clear;php artisan view:clear; php artisan route:clear;php artisan config:clear; composer dump-autoload'
alias pu='./vendor/bin/phpunit --configuration ./phpunit_local.xml'
alias nrd='npm run development'
alias nrp='npm run production'
alias nrw='npm run watch'
alias laralog='tail -f ./storage/logs/laravel.log'
alias ras='rails server'
alias rac='rails console'
alias rag='rails generate'
alias ral='tail -f log/development.log'
alias ragm='rails generate migration'
alias ram='rails db:migrate'
alias ramr='rails db:rollback'
alias ramrm='rails db:rollback && rails db:migrate'
alias rams='rails db:migrate:status'
alias dcu='docker-compose up'
alias gitlog="git log --author $USER --branches *"
alias gcom="git checkout master || git checkout main"
alias gcob="git checkout -b"
alias grem="git checkout master && git pull origin master && git checkout - && git rebase --interactive --committer-date-is-author-date master && git status"
alias grem2="git checkout main && git pull origin main && git checkout - && git rebase --interactive --committer-date-is-author-date main && git status"
alias gred="git checkout development && git pull origin development && git checkout - && git rebase --interactive --committer-date-is-author-date development"
alias grc="git rebase --continue"
alias gpo="git push -u origin"
alias gpf="git push --force-with-lease --force-if-includes"
alias gdp="git diff --patience"
alias gcos="git checkout db/schema.rb"
alias gamend='git commit --amend --all --no-edit'
alias git-https='git remote set-url origin https://github.com/$(git remote get-url origin | sed "s/https:\/\/github.com\///" | sed "s/[email protected]://")'
alias git-ssh=' git remote set-url origin [email protected]:$( git remote get-url origin | sed "s/https:\/\/github.com\///" | sed "s/[email protected]://")'
alias hrc="heroku run rails c -a"
# Disable flow control commands (keeps C-s from freezing everything in vim)
stty start undef
stty stop undef