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
|
@ -3,7 +3,7 @@
|
|||
# - Air polution condition using airvisual api
|
||||
# - Street address using google maps api
|
||||
# - Version 2.0
|
||||
export def-env weatherds [] {
|
||||
export def --env weatherds [] {
|
||||
get_weather (get_location 0)
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ def get_weather [loc] {
|
|||
|
||||
|
||||
# Get weather for right command prompt (set in config.nu)
|
||||
export def-env get_weather_by_interval [INTERVAL_WEATHER] {
|
||||
export def --env get_weather_by_interval [INTERVAL_WEATHER] {
|
||||
let weather_runtime_file = (($env.HOME) | path join .weather_runtime_file.json)
|
||||
|
||||
if ($weather_runtime_file | path exists) {
|
||||
|
@ -189,4 +189,4 @@ def get_weather_icon [icon: string] {
|
|||
"thunderstorm": {"🌩️"},
|
||||
"tornado": {"🌪️"}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue