Files
dotfiles/nushell/config.nu
T
Henrik Bakken 42578aaf97 nushell
2025-09-03 14:17:06 +02:00

46 lines
1.3 KiB
Nu

$env.config.show_banner = false
$env.config.edit_mode = 'vi'
$env.config = {
cursor_shape: {
vi_insert: line
vi_normal: block
}
history: {
max_size: 100_000
sync_on_enter: true
file_format: "plaintext"
isolation: false
}
keybindings: [
{
name: history_menu
modifier: control
keycode: char_r
mode: [ emacs, vi_insert, vi_normal ]
event: { send: menu name: history_menu }
}
{
name: move_right_or_take_history_hint
modifier: control
keycode: char_f
mode: [ emacs, vi_insert, vi_normal ]
event: {
until: [
{ send: historyhintcomplete }
{ send: menuright }
{ send: right }
]
}
}
]
}
oh-my-posh init nu --config ~/.config/nushell/theme.omp.json
source ~/.oh-my-posh.nu
# argc-completions
$env.ARGC_COMPLETIONS_ROOT = '/home/hjalmarlucius/.local/share/argc-completions'
$env.ARGC_COMPLETIONS_PATH = ($env.ARGC_COMPLETIONS_ROOT + '/completions/linux:' + $env.ARGC_COMPLETIONS_ROOT + '/completions')
$env.PATH = ($env.PATH | prepend ($env.ARGC_COMPLETIONS_ROOT + '/bin'))
argc --argc-completions nushell | save -f '/home/hjalmarlucius/.local/share/argc-completions/tmp/argc-completions.nu'
source '/home/hjalmarlucius/.local/share/argc-completions/tmp/argc-completions.nu'