mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2026-02-08 02:32:46 +01:00
rewrite and refactor a lot, delete redundant configs
This commit is contained in:
parent
ca61775d84
commit
c191adcc99
44 changed files with 311 additions and 1584 deletions
|
|
@ -133,9 +133,9 @@ let light_theme = {
|
|||
}
|
||||
|
||||
# External completer example
|
||||
let carapace_completer = {|spans|
|
||||
carapace $spans.0 nushell $spans | from json
|
||||
}
|
||||
# let carapace_completer = {|spans|
|
||||
# carapace $spans.0 nushell $spans | from json
|
||||
# }
|
||||
|
||||
# The default config record. This is where much of your global configuration is setup.
|
||||
$env.config = {
|
||||
|
|
@ -218,7 +218,7 @@ $env.config = {
|
|||
external: {
|
||||
enable: true # set to false to prevent nushell looking into $env.PATH to find more suggestions, `false` recommended for WSL users as this look up may be very slow
|
||||
max_results: 100 # setting it lower can improve completion performance at the cost of omitting some options
|
||||
completer: $carapace_completer # check 'carapace_completer' above as an example
|
||||
# completer: $carapace_completer # check 'carapace_completer' above as an example
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -245,23 +245,6 @@ $env.config = {
|
|||
render_right_prompt_on_last_line: false # true or false to enable or disable right prompt to be rendered on last line of the prompt.
|
||||
|
||||
hooks: {
|
||||
pre_prompt: [{ ||
|
||||
let direnv = (direnv export json | from json | default {})
|
||||
if ($direnv | is-empty) {
|
||||
return
|
||||
}
|
||||
$direnv
|
||||
| items {|key, value|
|
||||
{
|
||||
key: $key
|
||||
value: (if $key in $env.ENV_CONVERSIONS {
|
||||
do ($env.ENV_CONVERSIONS | get $key | get from_string) $value
|
||||
} else {
|
||||
$value
|
||||
})
|
||||
}
|
||||
} | transpose -ird | load-env
|
||||
}] # run before the prompt is shown
|
||||
pre_execution: [{ null }] # run before the repl input is run
|
||||
env_change: {
|
||||
PWD: [{|before, after| null }] # run if the PWD environment is different since the last repl input
|
||||
|
|
@ -816,3 +799,4 @@ def lcr [
|
|||
alias gnix = cd ~/nix-configs;
|
||||
alias grepo = cd ~/Documents/repos;
|
||||
alias wh = wormhole-rs;
|
||||
alias gst = git status;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue