-
Notifications
You must be signed in to change notification settings - Fork 3
/
aliases
51 lines (44 loc) · 1.42 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
# Awesome sauce for the terminal!
# Cleaning the palate
alias c="clear"
alias cl="c; l"
alias cls="c; ls"
# Terminal love
alias ct="c; tre"
alias rr="rm -rf"
alias sizeof="du -shx"
alias tre="tree -a -C -I 'node_modules|.git' --dirsfirst"
alias dz="tmux kill-session -t 0"
# Opening NeoVim
alias v="nvim"
alias vim="nvim"
alias vp="v -p" # multiple files with tabs
alias vd="v -d" # multiple files in diff mode
# Gitting quicker
alias git="hub"
alias nr="npm run"
alias nrd="npm run dev"
alias nrl="npm run lint"
alias cgst="c; gst"
alias grs="git restore"
alias gdr="git diff-tree --name-status -r"
alias gll="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"
# Opening config files
alias paths="v $DOTFILES/paths"
alias aliases="v $DOTFILES/aliases"
alias zshrc="v $DOTFILES/home/.zshrc"
alias zshenv="v $DOTFILES/home/.zshenv"
alias zprofile="v $DOTFILES/home/.zprofile"
alias vimrc="v $DOTFILES/config/nvim/init.vim"
alias i3conf="v $DOTFILES/config/i3/i3.config"
alias tmuxconf="v $DOTFILES/home/.tmux.conf"
alias termiteconf="v $DOTFILES/config/termite/termite.config"
# Simple shortcuts
alias t="npm test"
alias py="python"
alias bt="bluetoothctl"
alias dc="docker-compose"
alias dcr="docker-compose run"
alias ejson="ejson --keydir ~/.ejson/keys"
# Applications
alias b2="backblaze-b2"