From 25cd8380f802b069f95d9514563aa2a083176925 Mon Sep 17 00:00:00 2001 From: Till Höppner Date: Mon, 15 May 2017 14:32:03 +0200 Subject: Add prompt and other conf.d --- conf.d/90-alias.zsh | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 conf.d/90-alias.zsh (limited to 'conf.d/90-alias.zsh') 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 +} -- cgit v1.2.3