Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated nushell commands in init script #43

Closed
nett00n opened this issue Apr 30, 2024 · 1 comment
Closed

Deprecated nushell commands in init script #43

nett00n opened this issue Apr 30, 2024 · 1 comment

Comments

@nett00n
Copy link

nett00n commented Apr 30, 2024

Demo

> zoxide init nushell | save -f ~/.cache/zoxide/init.nu

> source ~/.cache/zoxide/init.nu
Error:   × Deprecated command
    ╭─[/home/nett00n/.cache/zoxide/init.nu:25:1]
 25 │ # Jump to a directory using only keywords.
 26 │ def-env __zoxide_z [...rest:string] {
    · ───┬───
    ·    ╰── `def-env` is deprecated and will be removed in 0.88.
 27 │   let arg0 = ($rest | append '~').0
    ╰────
  help: Use `def --env` instead


Error:   × Deprecated command
    ╭─[/home/nett00n/.cache/zoxide/init.nu:36:1]
 36 │ # Jump to a directory using interactive search.
 37 │ def-env __zoxide_zi  [...rest:string] {
    · ───┬───
    ·    ╰── `def-env` is deprecated and will be removed in 0.88.
 38 │   cd $'(zoxide query --interactive -- $rest | str trim -r -c "\n")'
    ╰────
  help: Use `def --env` instead

> nu --version
0.87.1

> zoxide --version
zoxide 0.9.2

image

How to reproduce

  1. Run alpine in docker
sudo docker run --rm -it alpine
  1. install zoxide and nushell
apk add nushell zoxide
  1. start nushell
> nu
No environment config file found at /root/.config/nushell/env.nu
Would you like to create one with defaults (Y/n):
n
Continuing without config file
No config file found at /root/.config/nushell/config.nu
Would you like to create one with defaults (Y/n):
n
Continuing without config file
     __  ,
 .--()°'.' Welcome to Nushell,
'|, . ,'   based on the nu language,
 !_-(_\    where all data is structured!

Please join our Discord community at https://discord.gg/NtAbbGn
Our GitHub repository is at https://github.com/nushell/nushell
Our Documentation is located at https://nushell.sh
Tweet us at @nu_shell
Learn how to remove this at: https://nushell.sh/book/configuration.html#remove-welcome-message

It's been this long since Nushell's first commit:
4yrs 11months 19days 13hrs 20mins 22secs 993ms 573µs 45ns

Startup Time: 4sec 861ms 180µs 370ns
  1. Save config to file
zoxide init nushell | save -f /tmp/zoxide_init.nu
  1. Execute
source /tmp/zoxide_init.nu
@fdncred
Copy link
Collaborator

fdncred commented Apr 30, 2024

Your zoxide is old/out of date. Your nushell version is old/out of date too.
This is the version I'm using.

❯ zoxide --version
zoxide 0.9.4

This isn't the repo for issues like this. awesome_nu is just a collection of awesome nushell things.

@fdncred fdncred closed this as completed Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants