aboutsummaryrefslogtreecommitdiff
path: root/.aliases
blob: bc9b389b3d0c193ab5164ba5d35fca2cdc4fcc32 (plain)
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
#!/usr/bin/env bash

alias emacs='emacs -nw'
alias mu4e='emacs -nw -f mu4e'
alias magit='emacs -nw -f magit'
alias nb='cd ~/journals; vim index.md; cd -'
alias todo='cd ~/journals; vim gtd.md; cd -'
alias vimg='vim +Git +only'

if [ -f /usr/bin/pacman ]; then
    alias S='pacman -S'
    alias Si='pacman -Si'
    alias Ss='pacman -Ss'
    alias Syu='sudo pacman -Syu'

    alias Rs='sudo pacman -Rs'
    alias Rns='sudo pacman -Rns'

    alias Q='pacman -Q'
    alias Qi='pacman -Qi'
    alias Qs='pacman -Qs'
fi

if [ -f /usr/bin/yay ]; then
    alias Sia='yay -Sia'
    alias Ssa='yay -Ssa'
    alias Syua='yay -Syua'

    alias Rsa='yay -Rsa'
    alias Rnsa='yay -Rnsa'
fi