summaryrefslogtreecommitdiff
path: root/conf.d/90-alias.zsh
blob: cb19c8e10ae9caa55f5c29d4ce1c7a05aa683f7d (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
53
54
55
56
57
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 d=docker
alias dc=docker-compose
alias dm=docker-machine

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

alias vim=$EDITOR
alias e=$EDITOR

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

alias c=cargo
alias r=raco

alias p=pass
alias t=tungsten

alias nib=nix-build
alias nic=nix-channel
alias nis=nix-shell
alias nie=nix-env
alias nir=nix-repl

nih() {
  nie -iA nixpkgs.coreEnv nixpkgs.desktopEnv nixpkgs.gamesEnv
  dotfiles.coreEnv
  dotfiles.desktopEnv
}

alias nor=nixos-rebuild
alias noc=nixos-container

alias pe=patchelf

alias -g L='| less '
alias -g F='| rg -i '
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
}