mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-03 07:37:47 +00:00
Using def --env instead of def-env (#673)
This commit is contained in:
parent
9d02fb1ef8
commit
06d3095ab1
15 changed files with 28 additions and 28 deletions
|
@ -115,7 +115,7 @@ module cdpath {
|
|||
}
|
||||
|
||||
# Change directory with $env.CDPATH
|
||||
export def-env c [dir = "": string@complete] {
|
||||
export def --env c [dir = "": string@complete] {
|
||||
let span = (metadata $dir).span
|
||||
let default = if $nu.os-info.name == "windows" {
|
||||
$env.USERPROFILE
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use std repeat;
|
||||
|
||||
# Go up a number of directories
|
||||
def-env up [
|
||||
def --env up [
|
||||
limit = 1: int # The number of directories to go up (default is 1)
|
||||
] {
|
||||
cd ("." | repeat ($limit + 1) | str join)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue