-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.aliases
50 lines (40 loc) · 1.05 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
# ls
alias l='ls -Flh'
alias ll='ls -Flha'
# git
alias g='git'
alias gs='git status --short'
alias gS='git status'
alias gd='git diff'
alias gD='git diff --staged'
alias ga='git add'
alias gA='git add --update'
alias gc='git commit'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gcom='git checkout master'
alias gp='git push'
alias gl='git log --decorate --oneline --graph'
alias gL='git log -p --shortstat'
alias gt='git ls-tree -r "$(git rev-parse --abbrev-ref HEAD)" --name-only | tree --fromfile'
alias mgs='nix run nixpkgs#mgitstatus --'
alias mgS='nix run nixpkgs#mgitstatus -- -f'
# tmux
alias t='tmux'
alias ta='tmux attach'
# less
alias less='less --RAW-CONTROL-CHARS'
# diff
alias diff='delta'
# nvim
alias v='nvim'
# convert to PDF
alias officetopdf='libreoffice --headless --convert-to pdf'
# calculator
alias calc='python -i -c "from math import *"'
# get GPLv3
alias gplv3='curl "https://www.gnu.org/licenses/gpl-3.0.md" > LICENSE.md'
# kubectl
alias kc='kubectx'
# nix
alias ns='nix-shell --log-format bar --command "${SHELL}" --packages'