diff options
author | Till Höppner | 2017-06-05 17:57:58 +0200 |
---|---|---|
committer | Till Höppner | 2017-06-05 17:57:58 +0200 |
commit | 2dd9c16de15f01802a99f15f30722e4f3ffeab63 (patch) | |
tree | c8efcfbc2e7a02870fbade8d6fcfb44e2a765064 /conf.d | |
parent | dc6d368db29dd5bccfbd35a4175802315d275b50 (diff) | |
download | zsh-2dd9c16de15f01802a99f15f30722e4f3ffeab63.tar.gz zsh-2dd9c16de15f01802a99f15f30722e4f3ffeab63.tar.xz zsh-2dd9c16de15f01802a99f15f30722e4f3ffeab63.zip |
Separate aliases into topics
Diffstat (limited to 'conf.d')
-rw-r--r-- | conf.d/90-alias.zsh | 28 | ||||
-rw-r--r-- | conf.d/99-docker.zsh | 7 | ||||
-rw-r--r-- | conf.d/99-nix.zsh | 14 |
3 files changed, 28 insertions, 21 deletions
diff --git a/conf.d/90-alias.zsh b/conf.d/90-alias.zsh index 087f28c..da6219d 100644 --- a/conf.d/90-alias.zsh +++ b/conf.d/90-alias.zsh @@ -7,12 +7,6 @@ alias just='nocorrect sudo ' alias reboop=reboot alias g=git -alias d=docker -alias dc=docker-compose -alias dm=docker-machine -alias dtop='d stats $(d ps --format={{.Names}})' -alias ctop='d run -it --name ctop --rm -v /var/run/docker.sock:/var/run/docker.sock:ro quay.io/vektorlab/ctop:latest' -alias dlog='d logs --follow --timestamps --tail=10000' alias sc=systemctl alias scu='systemctl --user' @@ -21,6 +15,9 @@ 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" @@ -30,22 +27,11 @@ 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 wa=tungsten -alias nor=nixos-rebuild -alias noc=nixos-container +alias t=task +alias tn='task next' +alias ta='task add' alias pe=patchelf diff --git a/conf.d/99-docker.zsh b/conf.d/99-docker.zsh new file mode 100644 index 0000000..46c3de2 --- /dev/null +++ b/conf.d/99-docker.zsh @@ -0,0 +1,7 @@ +alias d=docker +alias dc=docker-compose +alias dm=docker-machine + +alias dtop='d stats $(d ps --format={{.Names}})' +alias ctop='d run -it --name ctop --rm -v /var/run/docker.sock:/var/run/docker.sock:ro quay.io/vektorlab/ctop:latest' +alias dlog='d logs --follow --timestamps --tail=10000' diff --git a/conf.d/99-nix.zsh b/conf.d/99-nix.zsh new file mode 100644 index 0000000..1156080 --- /dev/null +++ b/conf.d/99-nix.zsh @@ -0,0 +1,14 @@ +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 |