mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 15:17:47 +00:00
Create pwd-short.nu (#235)
This commit is contained in:
parent
03db40965a
commit
f6bd50a221
1 changed files with 4 additions and 0 deletions
4
cool-oneliners/pwd-short.nu
Normal file
4
cool-oneliners/pwd-short.nu
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# Print working directory but abbreviates the home dir as ~
|
||||||
|
def pwd-short [] {
|
||||||
|
$env.PWD | str replace $nu.home-path '~' -s
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue