aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d/alias
blob: 5e412a3b1ea26386c822f1e53ad57627f7c796dc (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
# vim: ft=sh:
alias ls='ls --color=auto'
eval $(dircolors -b)
alias ll='ls -lh'
alias df='df -h'
alias du='du -h'
alias grep='grep --color=auto'
alias ip='ip -c'
alias gdb='gdb -q'
alias cgdb='cgdb -q'
alias octave='octave-cli -q'
alias ssh='TERM="xterm-256color" ssh'
alias gst='git status'
if command -v nvim >/dev/null; then
	alias v='nvim'
else
	alias v='vim'
fi
alias watch='watch -n 1 -c -t -d'
alias rej='find -name \*.rej'
alias orig='find -name \*.orig'
alias mmake='make -j$(($(nproc) * 2)) -l$(nproc)'
alias xo='xdg-open'

# Systemd aliases if we are running systemd
if pidof systemd >/dev/null 2>/dev/null; then
	alias sctl='sudo systemctl'
	alias usctl='systemctl --user'
	alias jrn='journalctl'
	alias ujrn='jrn --user'
fi

if command -v sdcv 2>/dev/null >&2; then
	alias sdcv='sdcv -c'
fi

if command -v nix 2>/dev/null >&2; then
	alias nrun='nix run .'
fi