-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zsh_aliases
53 lines (48 loc) · 1.54 KB
/
.zsh_aliases
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
# Unix
alias c="clear"
alias port="netstat -na | grep"
# alias copy="xclip -selection clipboard && echo 'Copied to clipboard.'"
# alias path="pwd | xclip -selection clipboard && echo 'Path copied to clipboard'"
# alias sshkey="cat ~/.ssh/id_rsa.pub | xclip -selection clipboard && echo 'Public SSH copied to clipboard.'"
# Others
alias y="yarn"
# Git and Github
alias git="git"
alias ga="git add"
alias gd="git diff"
alias gf="get fetch"
alias gs="git status"
alias gb="git branch"
alias gc="git commit -S"
alias gl="git log --oneline --graph"
alias gcl="git clone"
alias gco="git checkout"
alias gpr="git pull-request"
alias gdc="git diff --cached"
alias gpoh='git push origin HEAD'
alias glf="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias nah="git reset --hard; git clean -df;"
# Laravel
alias art="php artisan"
alias tinker="art tinker"
alias migrate="art migrate"
alias routes="art route:list"
alias fresh="art migrate:fresh --seed"
alias serve="art serve --host 0.0.0.0"
# APT
alias purge="sudo apt purge"
alias update="sudo apt update"
alias list="apt list --upgradable"
alias remove="sudo apt autoremove"
alias upgrade="sudo apt full-upgrade"
# Docker
alias dl="docker ps -l -q"
alias dps="docker ps"
alias dpa="docker ps -a"
alias di="docker images"
alias dip="docker inspect --format '{{ .NetworkSettings.IPAddress }}'"
alias dkd="docker run -d -P"
alias dki="docker run -it -P"
alias dex="docker exec -it"
alias dco="docker-compose"
alias dcl="docker-compose logs -f"