mirror of
https://github.com/jarun/nnn.git
synced 2024-11-17 16:39:14 +00:00
Merge pull request #1782 from BeyondMagic/master
fix nushell quitcd script: remove deprecated keywords
This commit is contained in:
commit
82f9e544f2
|
@ -1,8 +1,8 @@
|
|||
# The behaviour is set to cd on quit (nnn checks if NNN_TMPFILE is set)
|
||||
let cfgHome = ($env | default $"($env.HOME)/.config" XDG_CONFIG_HOME | get XDG_CONFIG_HOME)
|
||||
let-env NNN_TMPFILE = $"($cfgHome)/nnn/.lastd"
|
||||
$env.NNN_TMPFILE = $"($cfgHome)/nnn/.lastd"
|
||||
|
||||
def-env n [...x] {
|
||||
def --env n [...x] {
|
||||
# Launch nnn. Add desired flags after `^nnn`, ex: `^nnn -eda ($x | str join)`
|
||||
^nnn ($x | str join)
|
||||
let newpath = (
|
||||
|
|
Loading…
Reference in a new issue