summaryrefslogtreecommitdiff
path: root/conf.d/90-alias.zsh
diff options
context:
space:
mode:
authorTill Höppner2017-05-15 14:32:03 +0200
committerTill Höppner2017-05-15 14:32:03 +0200
commit25cd8380f802b069f95d9514563aa2a083176925 (patch)
tree932cee39b430d984570842817d7f4649f6a33956 /conf.d/90-alias.zsh
parentb2bf9b7a2d72f91d75f2222a70d54eaeb8b04d61 (diff)
downloadzsh-25cd8380f802b069f95d9514563aa2a083176925.tar.gz
zsh-25cd8380f802b069f95d9514563aa2a083176925.tar.xz
zsh-25cd8380f802b069f95d9514563aa2a083176925.zip
Add prompt and other conf.d
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
+}