-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from AliciaBytes/nushell
Add some initial nushell setup
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
$enf.config = { | ||
show_banner: false, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$env.EDITOR = ["code", "--wait"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# this file is both a valid | ||
# - overlay which can be loaded with `overlay use starship.nu` | ||
# - module which can be used with `use starship.nu` | ||
# - script which can be used with `source starship.nu` | ||
export-env { $env.STARSHIP_SHELL = "nu"; load-env { | ||
STARSHIP_SESSION_KEY: (random chars -l 16) | ||
PROMPT_MULTILINE_INDICATOR: ( | ||
^/home/aliciabytes/.cargo/bin/starship prompt --continuation | ||
) | ||
# Does not play well with default character module. | ||
# TODO: Also Use starship vi mode indicators? | ||
PROMPT_INDICATOR: "" | ||
PROMPT_COMMAND: {|| | ||
# jobs are not supported | ||
( | ||
^/home/aliciabytes/.cargo/bin/starship prompt | ||
--cmd-duration $env.CMD_DURATION_MS | ||
$"--status=($env.LAST_EXIT_CODE)" | ||
--terminal-width (term size).columns | ||
) | ||
} | ||
|
||
config: ($env.config? | default {} | merge { | ||
render_right_prompt_on_last_line: true | ||
}) | ||
|
||
PROMPT_COMMAND_RIGHT: {|| | ||
( | ||
^/home/aliciabytes/.cargo/bin/starship prompt | ||
--right | ||
--cmd-duration $env.CMD_DURATION_MS | ||
$"--status=($env.LAST_EXIT_CODE)" | ||
--terminal-width (term size).columns | ||
) | ||
} | ||
}} |