summaryrefslogtreecommitdiff
path: root/conf.d/90-alias.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d/90-alias.zsh')
-rw-r--r--conf.d/90-alias.zsh57
1 files changed, 57 insertions, 0 deletions
diff --git a/conf.d/90-alias.zsh b/conf.d/90-alias.zsh
new file mode 100644
index 0000000..cb19c8e
--- /dev/null
+++ b/conf.d/90-alias.zsh
@@ -0,0 +1,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
+}