From 8b29bb39daa31d002e1ce58aaa5ec6e8619d566d Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 29 Sep 2022 07:30:44 -0400 Subject: .bashrc: Canonicalize nix which --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index c765041..a32ee7c 100644 --- a/.bashrc +++ b/.bashrc @@ -106,7 +106,7 @@ alias tidy='tidy -config $HOME/.config/tidy.conf' alias units='units --history "$XDG_CACHE_HOME"/units_history' # nix helpers -nix-which() { readlink "$(type -P "$1")"; } +nix-which() { readlink --canonicalize "$(type -P "$1")"; } # lxc helpers lxc-copy() { A=$1 && B=$2 && shift 2 && $(type -P lxc-copy) --allowrunning --name "$A" -N "$B" "$@"; } -- cgit v1.2.3