nushell
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
$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'
|
||||
@@ -0,0 +1,105 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||
"palette": {
|
||||
"white": "#FFFFFF",
|
||||
"tan": "#CC3802",
|
||||
"teal": "#047E84",
|
||||
"plum": "#9A348E",
|
||||
"blush": "#DA627D",
|
||||
"salmon": "#FCA17D",
|
||||
"sky": "#86BBD8",
|
||||
"teal_blue": "#33658A"
|
||||
},
|
||||
"blocks": [
|
||||
{
|
||||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"type": "text",
|
||||
"style": "diamond",
|
||||
"leading_diamond": "\ue0b6",
|
||||
"foreground": "p:white",
|
||||
"background": "p:tan",
|
||||
"template": "{{ if .Env.PNPPSHOST }} \uf8c5 {{ .Env.PNPPSHOST }} {{ end }}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"style": "powerline",
|
||||
"foreground": "p:white",
|
||||
"background": "p:teal",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"template": "{{ if .Env.PNPPSSITE }} \uf2dd {{ .Env.PNPPSSITE }}{{ end }}"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"style": "diamond",
|
||||
"trailing_diamond": "\ue0b4",
|
||||
"foreground": "p:white",
|
||||
"background": "p:teal",
|
||||
"template": "{{ if .Env.PNPPSSITE }}\u00A0{{ end }}"
|
||||
}
|
||||
],
|
||||
"type": "rprompt"
|
||||
},
|
||||
{
|
||||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"background": "p:plum",
|
||||
"foreground": "p:white",
|
||||
"leading_diamond": "\ue0b6",
|
||||
"style": "diamond",
|
||||
"template": "{{ .UserName }} ",
|
||||
"type": "session"
|
||||
},
|
||||
{
|
||||
"background": "p:blush",
|
||||
"foreground": "p:white",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"properties": {
|
||||
"style": "folder"
|
||||
},
|
||||
"style": "powerline",
|
||||
"template": " {{ .Path }} ",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"background": "p:salmon",
|
||||
"foreground": "p:white",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"properties": {
|
||||
"branch_icon": "",
|
||||
"fetch_stash_count": true,
|
||||
"fetch_status": false,
|
||||
"fetch_upstream_icon": true
|
||||
},
|
||||
"style": "powerline",
|
||||
"template": " \u279c ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }}) ",
|
||||
"type": "git"
|
||||
},
|
||||
{
|
||||
"background": "p:sky",
|
||||
"foreground": "p:white",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"style": "powerline",
|
||||
"template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
|
||||
"type": "node"
|
||||
},
|
||||
{
|
||||
"background": "p:teal_blue",
|
||||
"foreground": "p:white",
|
||||
"properties": {
|
||||
"time_format": "15:04"
|
||||
},
|
||||
"style": "diamond",
|
||||
"template": " \u2665 {{ .CurrentDate | date .Format }} ",
|
||||
"trailing_diamond": "\ue0b0",
|
||||
"type": "time"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
}
|
||||
],
|
||||
"final_space": true,
|
||||
"version": 3
|
||||
}
|
||||
Reference in New Issue
Block a user