-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
executable file
·44 lines (33 loc) · 1.09 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
#!/usr/bin/zsh
alias ipy="~/tools/venvs/main/bin/ipython"
alias la="ls -fHalo --color=auto"
alias ls="ls --color=auto"
alias py="$HOME/tools/venvs/main/bin/python3"
alias venv="source $HOME/tools/venvs/main/bin/activate"
alias uvp="uv pip"
alias wdiff="git diff --color-words --no-index"
alias szr="source ~/.zshrc"
function cargo_list() {
cargo install --list | rg '^[a-z0-9_-]+ v[0-9.]+:$' | cut -f1 -d' '
}
# Git - inspired by https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git
alias g="git"
alias ga="git add"
alias gaa="git add --all"
alias gc="git commit"
alias gcm="git commit -m"
alias gca="git commit --amend"
alias gco="git checkout"
alias gcb="git checkout -b"
alias gd="git diff"
alias gd1="git diff HEAD"
alias gdt="git difftool"
alias gl="git log --graph"
alias glv="git log --graph --stat"
alias glo="git log --graph --pretty='%Cred%h%Creset %C(auto)%d%Creset %<(50)%s %C(bold blue)%an%Creset %Cgreen%ar%Creset'"
alias gp="git pull"
alias grb="git rebase"
alias grbc="git rebase --continue"
alias grbi="git rebase --interactive"
alias gs="git status --short"
alias gss="git status"