aboutsummaryrefslogtreecommitdiff
path: root/.aliases
blob: 582a7761335a3d1775accfb2f4b1f72e013db3a4 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env bash

alias ls='ls --color=auto'
alias ll='ls --color=auto -lh'
alias diff='diff --color=auto'
alias grep='grep --color=auto'

alias emacs='emacs -nw'
alias magit='et -e "(magit-status \"$(pwd)\")"'
alias agenda='et -e "(org-agenda)"'
alias nb='cd ~/journals; vim index.md; cd -'
alias todo='cd ~/journals; vim gtd.md; cd -'
alias vimg='vim +Git +only'

alias gmf='git diff --merge-base'
alias gmfn='git diff --merge-base --name-only'

if [ -f /usr/bin/pacman ]; then
    alias S='sudo 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 Qm='pacman -Qm'
    alias Qs='pacman -Qs'
    alias Qu='pacman -Qu'
fi

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

    alias Rsa='paru -Rsa'
    alias Rnsa='paru -Rnsa'

    alias Qa='paru -Qa'
    alias Qia='paru -Qia'
    alias Qma='paru -Qma'
    alias Qsa='paru -Qsa'
    alias Qua='paru -Qua'
fi