diff --git a/cool-oneliners/pwd-short.nu b/cool-oneliners/pwd-short.nu new file mode 100644 index 0000000..f7ef9b9 --- /dev/null +++ b/cool-oneliners/pwd-short.nu @@ -0,0 +1,4 @@ +# Print working directory but abbreviates the home dir as ~ +def pwd-short [] { + $env.PWD | str replace $nu.home-path '~' -s +}