-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
77 lines (71 loc) · 2.86 KB
/
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
# Aliases
# ls
alias camera='sudo killall AppleCameraAssistant;sudo killall VDCAssistant'
alias ls='exa'
alias ll='exa -l'
alias lll='exa -l | less'
alias lla='exa -la'
alias llt='exa -T' # recurse into folder and create tree structure
alias llfu='exa -bghHliS --git'
alias init-venv="python -m venv venv"
alias activate="source venv/bin/activate"
# alias python="python3"
alias pip="pip3"
alias stop="pkill -f "
# EDIT QUICKLY WITH VIM
alias valias="vim ~/.dotfiles/aliases"
alias vfunctions="vim ~/.dotfiles/functions"
alias vkarabiner="vim ~/.dotfiles/karabiner/karabiner.edn"
alias vohmyzsh="vim ~/.oh-my-zsh"
alias vzsh="vim ~/.zshrc"
alias vvimrc="vim ~/.vimrc"
# SOURCE QUICKLY
alias salias="source ~/.dotfiles/aliases"
alias sfunctions="source ~/.dotfiles/functions"
alias skarabiner="goku" # sources karabiner.edn -to-> karabiner.json
alias sohmyzsh="source ~/.oh-my-zsh"
alias szsh="source ~/.zshrc"
alias svimrc="source ~/.vimrc"
# GIT Specific
alias cat='bat'
alias gcu='git -c commit.gpgsign=false commit' # does a git commit that is specifically unsigned
alias gpod='git push origin --delete ' # deletes a remote branch on github. --> gpod branch_name
alias gbm='git branch -m ' # renames your CURRENT local branch to a new name --> gbm new_name
alias gbm='git branch -m ' # renames a branch you're NOT CURRENTLY ON to a new name --> gbm old_name new_name
alias grhb='git reset --hard origin/<name of branch you want to pull from>' # clear/delete local branch and pull from remote branch only
alias git_fix_gitignore='git rm -r --cached .' # untracks all files by removing them from index. DOES NOT delete files. Use if trying to catch files in updated .gitignore
alias check="git ls-files -v|grep '^S'" # checks for any files flagged w/ --skip-worktree alias
alias gitinfo='
echo "Remotes";
echo "-------";
git remote -v;
echo
echo "Branches";
echo "-------";
git branch;
echo
echo "Status"
echo "-------";
git status'
# "git upstream" --> defined in git config and it automatically sets the set-upstream branch to your current branch if it doesn't exist yet
alias howto="cat ~/.aliases ~/.functions ~/.commands | grep $1"
alias howvim="cat ~/.dotfiles/vim_commands | grep $1"
alias fz='vim $(fzf)'
alias vi='vim'
alias rt='redis-cli ping' # test if redis is working
alias dps='docker ps'
alias dc='docker-compose'
alias dcu='docker-compose up'
alias dcb='docker-compose build'
alias dcd='docker-compose down'
alias dcs='docker-compose stop'
alias ms='makana start'
alias mp='makana stop'
alias msa='makana start ahom'
alias mpa='makana stop ahom'JesusRocks
alias rm-containers='docker container rm $(docker container ls -aq)'
alias rm-images='docker image prune -a'
alias clipboard='[[ -x `which xclip 2>/dev/null` ]] && cat << EOF | xclip -selection clipboard '
alias clr="source ~/.bashrc; clear" # make cool startup sign
alias clear="source ~/.bashrc; clear" # make cool startup sign
unalias rg 2>/dev/null