-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathzshrc
56 lines (46 loc) · 1.09 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
# Oh my zsh configs
export ZSH=$HOME/.oh-my-zsh
plugins=(artisan composer asdf)
ZSH_THEME="robbyrussell"
source $ZSH/oh-my-zsh.sh
export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR=nvim
else
export EDITOR=nvim
fi
# System
alias ls="lsd -A"
alias ll="lsd -lA"
# Make built-in commands with verbose, if possible
alias mkdir="mkdir -pv"
# Vim
export PYTHON3_HOST_PROG=/usr/bin/python3
export PYTHON_HOST_PROG=/usr/bin/python2
alias v=nvim
# Git aliases
alias g="git"
alias gA="git add -A"
alias ga="git add"
alias gbr="git branch"
alias gcl="git clone"
alias gcm="git commit"
alias gco="git checkout"
alias gm="git merge"
alias gd="git diff"
alias gds="git diff --staged"
alias gf="git fetch"
alias gh="git log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short"
alias gi="git init"
alias gl="git pull"
alias gp="git push"
alias gre="git reset --hard HEAD"
alias grs="git restore"
alias gro="git remote"
alias gs="git status"
alias gst="git stash"
alias gt="git tag"
# PHP
alias art="php artisan"
alias sf="php bin/console"