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

50 lines
1.4 KiB
Nu

$env.config.show_banner = false
$env.config.edit_mode = 'vi'
$env.config = {
cursor_shape: {
vi_insert: line
vi_normal: block
}
history: {
file_format: sqlite
isolation: true
}
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 }
]
}
}
{
name: delete_one_word_backward
modifier: alt
keycode: backspace
mode: vi_insert
event: {edit: backspaceword}
}
]
}
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'