From 22fdde6d840e408984f22c08424c34e06b594095 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 7 Jan 2019 08:47:06 -0800 Subject: Add experimental cd function --- common.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common.nix') diff --git a/common.nix b/common.nix index ff58399..2f23e95 100644 --- a/common.nix +++ b/common.nix @@ -89,6 +89,9 @@ in DIR=~/.nix-profile/etc/profile.d [[ -f "$DIR/nix.sh" ]] && . "$DIR/nix.sh" [[ -f "$DIR/hm-session-vars.sh" ]] && . "$DIR/hm-session-vars.sh" + function cd() { + builtin cd "$@" && ls + } ''; shellAliases = { #z = "fasd_cd -d"; # cd, same functionality as j in autojump -- cgit v1.2.3