-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zsh_aliases
82 lines (70 loc) · 2.07 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
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
#!/bin/bash
# For a full list of active aliases, run `alias`.
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
# For a full list of active aliases, run `alias`.
alias update="$UPDATE"
alias fresh="$FRESH"
alias cdr="cd ~/repos"
alias cdt="cd ~/tmp"
alias cli="cd ~/Documents/cli"
alias pwdc="pwd | $CLIPBOARD"
#editor aliases
alias medit="micro ~/.zshrc"
alias menv="micro ~/.zsh_env"
alias malias="micro ~/.zsh_aliases"
alias mfunc="micro ~/.zsh_functions"
alias mlocal="micro ~/.zsh_local/.zsh_env_local"
#alias mcli="mux with cli as input"
alias cedit="code ~/.zshrc"
alias cenv="code ~/.zsh_env"
alias calias="code ~/.zsh_aliases"
alias cfunc="code ~/.zsh_functions"
alias ccli="code ~/Documents/cli && code ~/.zsh_local"
alias clocal="code ~/.zsh_local/.zsh_env_local"
alias iedit='idea ~/.zshrc'
alias ienv='idea ~/.zsh_env'
alias ialias="micro ~/.zsh_aliases"
alias ifunc="micro ~/.zsh_functions"
alias icli="idea ~/Documents/cli"
alias ilocal="idea ~/.zsh_local/.zsh_env_local"
# git aliases
alias gs="git status"
alias gas="gitAddStash"
alias gaso="git stash apply 0"
alias gpo="git pull origin"
# this will unstage the last commit
alias gu="git reset --soft HEAD~1"
#alias gb="git branch --show-current"
# alias branches="git branch -r | sed \"s|origin/||\" | fzf"
# alias branch="git branch --show-current"
# alias gbc="branch | $CLIPBOARD"
# alias gcb="git checkout -b"
alias gac="gitAddCommit"
alias gcob="gitBranchCheckout"
alias gcoh="gitCheckoutHead"
alias gacp="gitAddCommitPush"
alias gcom="git checkout main && git pull"
alias gpom="git pull origin main"
alias clone="git clone"
alias gsl="git stash list"
alias gdb="git branch -D"
#alias dc="docker compose"
#alias dp="docker system prune -f --volumes"
alias cli="cd ~/Documents/cli"
alias repos="cd ~/repos"
alias tls="tmux ls"
alias tka="tmux kill-server"
# alias kubectl="k3s kubectl"
alias la='ls -A'
alias q='exit'
alias c='clear'
alias h='history'
alias home='cd ~'
alias ex="/mnt/c/Windows/explorer.exe"
# add this to zsh env
alias ll='ls -alF'
alias l='ls -CF'
alias lsg='ls | grep'