mirror of
https://github.com/nushell/nushell
synced 2025-01-01 15:58:55 +00:00
6e85b04923
* [ls] implement 1b. > `ls ~` does not return paths relative to the current directory. We now return `/Users/blah` instead of `../../blah` * expand lhs and rhs on `path relative-to` /Users/nimazzuc/projects/nushell〉'~' | path relative-to '~' /Users/nimazzuc/projects/nushell〉'~/foo' | path relative-to '~' foo /Users/nimazzuc/projects/nushell〉'/Users/nimazzuc/foo' | path relative-to '~' foo /Users/nimazzuc/projects/nushell〉'~/foo' | path relative-to '/Users/nimazzuc' foo * format
10 lines
246 B
Rust
10 lines
246 B
Rust
mod dots;
|
|
mod expansions;
|
|
mod helpers;
|
|
mod tilde;
|
|
mod util;
|
|
|
|
pub use expansions::{canonicalize_with, expand_path_with, expand_to_real_path};
|
|
pub use helpers::{config_dir, home_dir};
|
|
pub use tilde::expand_tilde;
|
|
pub use util::trim_trailing_slash;
|