[feat] Add linux files

This commit is contained in:
Uttarayan
2023-07-25 13:33:37 +05:30
parent 7462ead329
commit 9dc6e0acb4
8 changed files with 115 additions and 29 deletions

View File

@@ -1,6 +1,6 @@
let-env STARSHIP_SHELL = "nu"
let-env STARSHIP_SESSION_KEY = (random chars -l 16)
let-env PROMPT_MULTILINE_INDICATOR = (^/opt/homebrew/bin/starship prompt --continuation)
let-env PROMPT_MULTILINE_INDICATOR = (^/usr/bin/starship prompt --continuation)
# Does not play well with default character module.
# TODO: Also Use starship vi mode indicators?
@@ -9,7 +9,7 @@ let-env PROMPT_INDICATOR = ""
let-env PROMPT_COMMAND = { ||
# jobs are not supported
let width = (term size).columns
^/opt/homebrew/bin/starship prompt $"--cmd-duration=($env.CMD_DURATION_MS)" $"--status=($env.LAST_EXIT_CODE)" $"--terminal-width=($width)"
^/usr/bin/starship prompt $"--cmd-duration=($env.CMD_DURATION_MS)" $"--status=($env.LAST_EXIT_CODE)" $"--terminal-width=($width)"
}
# Whether we have config items
@@ -23,5 +23,5 @@ let-env config = if $has_config_items {
let-env PROMPT_COMMAND_RIGHT = { ||
let width = (term size).columns
^/opt/homebrew/bin/starship prompt --right $"--cmd-duration=($env.CMD_DURATION_MS)" $"--status=($env.LAST_EXIT_CODE)" $"--terminal-width=($width)"
^/usr/bin/starship prompt --right $"--cmd-duration=($env.CMD_DURATION_MS)" $"--status=($env.LAST_EXIT_CODE)" $"--terminal-width=($width)"
}