[fix] Conda.nu update for new nushell
This commit is contained in:
@@ -22,7 +22,7 @@ export-env {
|
||||
$env.CONDA_CURR = null
|
||||
}
|
||||
|
||||
export def-env activate [name: string] {
|
||||
export def --env activate [name: string] {
|
||||
if ($env.CONDA_ROOT | is-empty) {
|
||||
print "Neither Conda nor Mamba is valid."
|
||||
return
|
||||
@@ -44,7 +44,7 @@ export def-env activate [name: string] {
|
||||
load-env ({CONDA_CURR: $name} | merge $new_path)
|
||||
}
|
||||
|
||||
export def-env deactivate [] {
|
||||
export def --env deactivate [] {
|
||||
if ($env.CONDA_ROOT | is-empty) {
|
||||
print "Neither Conda nor Mamba is valid."
|
||||
return
|
||||
@@ -55,7 +55,7 @@ export def-env deactivate [] {
|
||||
load-env {Path: $env.CONDA_BASE_PATH, PATH: $env.CONDA_BASE_PATH}
|
||||
}
|
||||
|
||||
export def-env list [] {
|
||||
export def --env list [] {
|
||||
$env.CONDA_ENVS |
|
||||
flatten |
|
||||
transpose |
|
||||
|
||||
@@ -11,4 +11,5 @@ tmux new-window -t default -n 'shell'
|
||||
tmux new-window -t default -n 'shell'
|
||||
tmux new-window -t default -n 'IRC'
|
||||
tmux send-keys -t default:IRC "irssi" Enter
|
||||
tmux send-keys -t default:IRC Enter
|
||||
tmux select-window -t default:0
|
||||
|
||||
Reference in New Issue
Block a user