-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
63 lines (54 loc) · 2.04 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
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias gf='gfortran'
alias py='python'
alias pkglist-update='dotfiles pull gitlab master && pacman -Qqe > $HOME/.config/pkglist.txt && dotfiles commit -am "update" && dotfiles push gitlab master && dotfiles push github master'
alias blueon='sudo modprobe btusb && sudo modprobe bluetooth && sudo systemctl start bluetooth'
alias myip='curl ipinfo.io/ip'
alias hibernate='systemctl hibernate'
alias emacsclient='emacsclient -nw'
## colors
alias ls="ls --color -F"
alias ll="ls --color -lh"
alias la="ls --color -al"
alias grep='grep --colour=always'
alias egrep='egrep --colour=auto'
alias fgrep='fgrep --colour=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
## pacman
alias pacup='sudo systemctl start reflector.service && sudo pacman -Syuw --noconfirm'
alias pacs='pacman -Ss'
alias pacr='sudo pacman -Rnsc'
alias pacsc='sudo pacman -Syuw --noconfirm && sudo pacman -Sc'
alias pacqe='pacman -Qe'
alias pacqt='sudo pacman -Rns $(pacman -Qttdq)'
#aur
alias aurup='aur sync -uS'
alias aurs='aur search'
alias aurr='repo-remove -s $HOME/.AUR/pkgs/aur.db.tar.gz'
alias aurrebuild='aur sync -S --rebuild'
alias aurrebuildall='aur sync -S --rebuildall'
#up: jupyter, npm, pip, rust, R and Julia
alias pyenv11='source .local/python11/bin/activate'
alias pyenv12='source .local/python12/bin/activate'
alias pyenv13='source .local/python13/bin/activate'
alias npmin='npm i -g $(cat $HOME/.config/pkgnpm.txt)'
alias carin='cargo install $(cat $HOME/.config/pkgrust.txt)'
alias npmup='npm update -g'
alias npmshow='npm -g list --depth=0'
alias pipin='pip install -r $HOME/.config/pkgpip.txt'
alias julin='julia -t auto $HOME/.config/packages.jl'
## git
alias gc='git commit '
alias gsta='git status'
alias gam='git commit --amend '
alias gcm='git checkout master'
alias gfu='git fetch upstream'
alias grm='git rebase -i master '
alias gm='git merge '
## moving in dirs
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ......="cd ../../../../.."