INIT!
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
$env.PROMPT_COMMAND = {
|
||||
let user = (whoami)
|
||||
let host = (sys host | get hostname)
|
||||
let cwd = ($env.PWD | path expand | str replace $env.HOME "~")
|
||||
|
||||
$"(ansi white)($user)@($host)\n(ansi white)($cwd)(ansi reset)"
|
||||
}
|
||||
|
||||
$env.PROMPT_INDICATOR = { $"(ansi white)$ (ansi reset)" }
|
||||
$env.PROMPT_INDICATOR_VI_INSERT = { $"(ansi white)$ (ansi reset)" }
|
||||
$env.PROMPT_INDICATOR_VI_NORMAL = { $"(ansi white)$ (ansi reset)" }
|
||||
$env.LANG = "en_US.UTF-8"
|
||||
$env.LC_ALL = "en_US.UTF-8"
|
||||
$env.LC_CTYPE = "en_US.UTF-8"
|
||||
$env.config.color_config = {
|
||||
text: light_white
|
||||
shape_keyword: light_white
|
||||
shape_string: light_green
|
||||
shape_int: light_white
|
||||
shape_float: light_white
|
||||
shape_bool: light_yellow
|
||||
shape_operator: light_white
|
||||
shape_variable: light_white
|
||||
shape_flag: light_white
|
||||
shape_external: light_white
|
||||
shape_path: light_white
|
||||
shape_error: light_red
|
||||
}
|
||||
$env.config.show_banner = false
|
||||
$env.PROMPT_COMMAND_RIGHT = { "" }
|
||||
@@ -0,0 +1,33 @@
|
||||
# env.nu
|
||||
#
|
||||
# Installed by:
|
||||
# version = "0.109.1"
|
||||
#
|
||||
# Previously, environment variables were typically configured in `env.nu`.
|
||||
# In general, most configuration can and should be performed in `config.nu`
|
||||
# or one of the autoload directories.
|
||||
#
|
||||
# This file is generated for backwards compatibility for now.
|
||||
# It is loaded before config.nu and login.nu
|
||||
#
|
||||
# See https://www.nushell.sh/book/configuration.html
|
||||
#
|
||||
# Also see `help config env` for more options.
|
||||
#
|
||||
# You can remove these comments if you want or leave
|
||||
# them for future reference.
|
||||
let base_xdg = [
|
||||
"/usr/local/share"
|
||||
"/usr/share"
|
||||
]
|
||||
|
||||
let flatpak_xdg = [
|
||||
"/var/lib/flatpak/exports/share"
|
||||
($env.HOME | path join ".local/share/flatpak/exports/share")
|
||||
]
|
||||
|
||||
$env.XDG_DATA_DIRS = ($base_xdg | append $flatpak_xdg | str join ":")
|
||||
|
||||
$env.PYENV_ROOT = ($env.HOME | path join ".pyenv")
|
||||
$env.PATH = ($env.PATH | split row (char env_sep) | prepend $'($env.PYENV_ROOT)/bin' | prepend $'($env.PYENV_ROOT)/shims')
|
||||
alias sway = dbus-run-session sway
|
||||
Reference in New Issue
Block a user