home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 2aea008d9a17b85a89c051e074ceb4c3a6cddf4e
parent 17c9a84d73cba82e1180b271224574effa1d3c2a
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 10 Jan 2020 18:17:52 +0100

zsh.nix: zsh global aliases from @chmouel

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mmodules/profiles/zsh.nix | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/profiles/zsh.nix b/modules/profiles/zsh.nix @@ -126,6 +126,11 @@ in PS1='$ ' fi setopt hist_ignore_space + alias -g L="|less" + alias -g EEL=' 2>&1 | less' + alias -g GB='`git rev-parse --abbrev-ref HEAD`' + alias -g GR='`git rev-parse --short-toplevel`' + (( $+commands[jq] )) && alias -g MJ="| jq -C '.'" || alias -g MJ="| ${pkgs.python3}/bin/python -mjson.tool" ''; profileExtra = '' if [ -e /home/vincent/.nix-profile/etc/profile.d/nix.sh ]; then . /home/vincent/.nix-profile/etc/profile.d/nix.sh; fi