summaryrefslogtreecommitdiff
path: root/conf.d/90-alias.zsh
blob: a8cec8170276a0394ce7c01a134d64d8f428bac8 (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
49
50
51
52
alias s='nocorrect sudo '
alias se='nocorrect sudo -E '
alias sse='nocorrect sudo -sE '
alias sudo='nocorrect sudo '
alias just='nocorrect sudo '

alias reboop=reboot

alias g=git

alias sc=systemctl
alias scu='systemctl --user'
alias jc=journalctl

alias vim=$EDITOR
alias e=$EDITOR

alias xo='xclip -o'
alias xi='xclip -i'

ce() {
  local file
  file=$(find "$CFG_DIR" -type f 2>/dev/null | fzf +m) && e "$file"
}

alias c=cargo
alias r=racket

alias p=pass
alias wa=tungsten

alias t=task
alias tn='task next'
alias ta='task add'

alias pe=patchelf

alias -g L='| less '

if (($+commands[rg])); then
  alias -g F='| rg -i '
else
  alias -g F='| grep -i '
fi

alias -g X='| xargs '
alias -g SDN=' >/dev/null '
alias -g EDN=' 2>/dev/null '

function steamrun() { # practically an alias, no?
  LD_PRELOAD="libpthread.so.0 libGL.so.1" __GL_THREADED_OPTIMIZATIONS=1 primusrun $argv
}