nushell: update config
This commit is contained in:
parent
a99c9a70ae
commit
fb67c6f3fc
1 changed files with 34 additions and 48 deletions
|
@ -18,14 +18,7 @@ alias grep = rg
|
||||||
alias build = nh os boot .
|
alias build = nh os boot .
|
||||||
alias switch = nh os switch .
|
alias switch = nh os switch .
|
||||||
alias clean = sudo nh clean all
|
alias clean = sudo nh clean all
|
||||||
alias deploy = nix run github:serokell/deploy-rs -- --targets
|
alias deploy = nix run github:serokell/deploy-rs -- --skip-checks --targets
|
||||||
alias sakura = nix run github:serokell/deploy-rs ".#sakura"
|
|
||||||
alias kariru = nix run github:serokell/deploy-rs ".#kariru"
|
|
||||||
alias yuki = nix run github:serokell/deploy-rs ".#yuki"
|
|
||||||
alias arashi = nix run github:serokell/deploy-rs ".#arashi"
|
|
||||||
alias sora = nix run github:serokell/deploy-rs ".#sora"
|
|
||||||
alias tsuru = nix run github:serokell/deploy-rs ".#tsuru"
|
|
||||||
alias haru = nix run github:serokell/deploy-rs ".#haru"
|
|
||||||
alias dl = yt-dlp -P ~/Videos/downloaded
|
alias dl = yt-dlp -P ~/Videos/downloaded
|
||||||
alias dlad = yt-dlp -x --audio-format mp3 --embed-thumbnail
|
alias dlad = yt-dlp -x --audio-format mp3 --embed-thumbnail
|
||||||
alias dlcd = yt-dlp
|
alias dlcd = yt-dlp
|
||||||
|
@ -34,64 +27,63 @@ alias shorten = rpaste -s "https://i.flake.sh/" -e 1day -u
|
||||||
alias send = croc --relay "100.104.42.96:9009" send
|
alias send = croc --relay "100.104.42.96:9009" send
|
||||||
alias receive = croc --relay "100.104.42.96:9009"
|
alias receive = croc --relay "100.104.42.96:9009"
|
||||||
alias ps = procs
|
alias ps = procs
|
||||||
alias tail = tspin
|
alias ts = tspin
|
||||||
alias spotify = spotify_player
|
|
||||||
alias zed = zeditor .
|
|
||||||
alias generate-topology = nix build ".#topology.x86_64-linux.config.output"
|
alias generate-topology = nix build ".#topology.x86_64-linux.config.output"
|
||||||
|
|
||||||
nitch
|
nitch
|
||||||
|
|
||||||
$env.config = {
|
$env.config = {
|
||||||
|
|
||||||
ls: {
|
ls: {
|
||||||
use_ls_colors: true # use the LS_COLORS environment variable to colorize output
|
use_ls_colors: true
|
||||||
clickable_links: true # enable or disable clickable links. Your terminal has to support links.
|
clickable_links: true
|
||||||
}
|
}
|
||||||
rm: {
|
rm: {
|
||||||
always_trash: false # always act as if -t was given. Can be overridden with -p
|
always_trash: false
|
||||||
}
|
}
|
||||||
table: {
|
table: {
|
||||||
mode: rounded # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other
|
mode: rounded
|
||||||
index_mode: always # "always" show indexes, "never" show indexes, "auto" = show indexes when a table has "index" column
|
index_mode: always
|
||||||
trim: {
|
trim: {
|
||||||
methodology: wrapping # wrapping or truncating
|
methodology: wrapping
|
||||||
wrapping_try_keep_words: true # A strategy used by the 'wrapping' methodology
|
wrapping_try_keep_words: true
|
||||||
truncating_suffix: "..." # A suffix used by the 'truncating' methodology
|
truncating_suffix: "..."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
history: {
|
history: {
|
||||||
max_size: 10000 # Session has to be reloaded for this to take effect
|
max_size: 10000
|
||||||
sync_on_enter: true # Enable to share history between multiple sessions, else you have to close the session to write history to file
|
sync_on_enter: true
|
||||||
file_format: "sqlite" # "sqlite" or "plaintext"
|
file_format: "sqlite"
|
||||||
}
|
}
|
||||||
completions: {
|
completions: {
|
||||||
case_sensitive: false # set to true to enable case-sensitive completions
|
case_sensitive: false
|
||||||
quick: true # set this to false to prevent auto-selecting completions when only one remains
|
quick: true
|
||||||
partial: true # set this to false to prevent partial filling of the prompt
|
partial: true
|
||||||
algorithm: "prefix" # prefix or fuzzy
|
algorithm: "prefix"
|
||||||
external: {
|
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 my be very slow
|
enable: true
|
||||||
max_results: 100 # setting it lower can improve completion performance at the cost of omitting some options
|
max_results: 100
|
||||||
completer: null # check 'carapace_completer' above as an example
|
completer: null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
footer_mode: "auto" # always, never, number_of_rows, auto
|
footer_mode: "auto"
|
||||||
float_precision: 2
|
float_precision: 2
|
||||||
# buffer_editor: "emacs" # command that will be used to edit the current line buffer with ctrl+o, if unset fallback to $env.EDITOR and $env.VISUAL
|
buffer_editor: "hx"
|
||||||
use_ansi_coloring: true
|
use_ansi_coloring: true
|
||||||
edit_mode: vi # emacs, vi
|
edit_mode: vi
|
||||||
shell_integration: {} # enables terminal markers and a workaround to arrow keys stop working issue
|
shell_integration: {}
|
||||||
show_banner: false # true or false to enable or disable the banner
|
show_banner: false
|
||||||
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.
|
render_right_prompt_on_last_line: false
|
||||||
hooks: {
|
hooks: {
|
||||||
pre_prompt: [{ ||
|
pre_prompt: [{ ||
|
||||||
null # replace with source code to run before the prompt is shown
|
null
|
||||||
}]
|
}]
|
||||||
pre_execution: [{ ||
|
pre_execution: [{ ||
|
||||||
null # replace with source code to run before the repl input is run
|
null
|
||||||
}]
|
}]
|
||||||
env_change: {
|
env_change: {
|
||||||
PWD: [{|before, after|
|
PWD: [{|before, after|
|
||||||
null # replace with source code to run if the PWD environment is different since the last repl input
|
null
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
display_output: { ||
|
display_output: { ||
|
||||||
|
@ -100,8 +92,6 @@ $env.config = {
|
||||||
}
|
}
|
||||||
|
|
||||||
menus: [
|
menus: [
|
||||||
# Configuration for default nushell menus
|
|
||||||
# Note the lack of souce parameter
|
|
||||||
{
|
{
|
||||||
name: completion_menu
|
name: completion_menu
|
||||||
only_buffer_difference: false
|
only_buffer_difference: false
|
||||||
|
@ -109,7 +99,7 @@ $env.config = {
|
||||||
type: {
|
type: {
|
||||||
layout: columnar
|
layout: columnar
|
||||||
columns: 4
|
columns: 4
|
||||||
col_width: 20 # Optional value. If missing all the screen width is used to calculate column width
|
col_width: 20
|
||||||
col_padding: 2
|
col_padding: 2
|
||||||
}
|
}
|
||||||
style: {
|
style: {
|
||||||
|
@ -139,7 +129,7 @@ $env.config = {
|
||||||
type: {
|
type: {
|
||||||
layout: description
|
layout: description
|
||||||
columns: 4
|
columns: 4
|
||||||
col_width: 20 # Optional value. If missing all the screen width is used to calculate column width
|
col_width: 20
|
||||||
col_padding: 2
|
col_padding: 2
|
||||||
selection_rows: 4
|
selection_rows: 4
|
||||||
description_rows: 10
|
description_rows: 10
|
||||||
|
@ -150,9 +140,6 @@ $env.config = {
|
||||||
description_text: yellow
|
description_text: yellow
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# Example of extra menus created using a nushell source
|
|
||||||
# Use the source field to create a list of records that populates
|
|
||||||
# the menu
|
|
||||||
{
|
{
|
||||||
name: commands_menu
|
name: commands_menu
|
||||||
only_buffer_difference: false
|
only_buffer_difference: false
|
||||||
|
@ -223,7 +210,7 @@ $env.config = {
|
||||||
name: completion_menu
|
name: completion_menu
|
||||||
modifier: none
|
modifier: none
|
||||||
keycode: tab
|
keycode: tab
|
||||||
mode: vi_normal # Options: emacs vi_normal vi_insert
|
mode: vi_normal
|
||||||
event: {
|
event: {
|
||||||
until: [
|
until: [
|
||||||
{ send: menu name: completion_menu }
|
{ send: menu name: completion_menu }
|
||||||
|
@ -235,7 +222,7 @@ $env.config = {
|
||||||
name: completion_previous
|
name: completion_previous
|
||||||
modifier: shift
|
modifier: shift
|
||||||
keycode: backtab
|
keycode: backtab
|
||||||
mode: [emacs, vi_normal, vi_insert] # Note: You can add the same keybinding to all modes by using a list
|
mode: [emacs, vi_normal, vi_insert]
|
||||||
event: { send: menuprevious }
|
event: { send: menuprevious }
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -297,7 +284,6 @@ $env.config = {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# Keybindings used to trigger the user defined menus
|
|
||||||
{
|
{
|
||||||
name: commands_menu
|
name: commands_menu
|
||||||
modifier: control
|
modifier: control
|
||||||
|
|
Loading…
Add table
Reference in a new issue