Created
August 12, 2020 19:14
-
-
Save mborejdo/65ddf0622dff641f2dab9e54167c11ee to your computer and use it in GitHub Desktop.
nushell config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edit_mode = "emacs" | |
use_starship = false | |
rm_always_trash = true | |
history_size = 100000 | |
completion_mode = "circular" | |
disable_table_indexes = false | |
header_align = "l" | |
header_color = "c" | |
header_bold = true | |
pivot_mode = "auto" | |
complete_from_path = true | |
key_timeout = 500 | |
startup = [ | |
"alias z [a b c d] {cd $(zoxide query $a $b $c $d | trim)}", | |
"alias zi [a b c d] {cd $(zoxide query -i $a $b $c $d | trim)}", | |
"alias za [a b c d] {zoxide add $a $b $c $d}", | |
"alias zq [a b c d] {zoxide query $a $b $c $d}", | |
"alias zqi [a b c d] {zoxide query -i $a $b $c $d}", | |
"alias zr [a b c d] {zoxide remove $a $b $c $d}", | |
"alias zri [a b c d] {zoxide remove -i $a $b $c $d}", | |
"alias cat [a] {open $a}", | |
"alias la [a] {ls -a $a}", | |
"alias find [a b c d] {fd $a $b $c $d}", | |
"alias grep [a b c d] {rg $a $b $c $d}", | |
"alias sed [a b c d] {sd $a $b $c $d}", | |
"alias vi [a b c d] {NVIM_LISTEN_ADDRESS=/tmp/nvim.socket nvim $a $b $c $d}", | |
"alias tf [] {termifind}", | |
"alias wask [a b c d] {mask --maskfile ~/.config/maskfile.md $a $b $c $d}", | |
"alias zoxship [a b c d] { do -i { zoxide add; starship prompt | echo `{{$(ansi white)}}{{$a}} {{$b}}{{$(ansi reset)}} {{$it}}` }}" | |
] | |
prompt = "zoxship " | |
nu_env_dirs = [ | |
] | |
path = [ | |
"/home/mib/go/bin", | |
"/home/mib/.cargo/bin", | |
"/usr/lib/go-1.14/bin", | |
"/usr/bin", | |
"/usr/local/bin", | |
"/home/mib/.bin" | |
] | |
[textview] | |
term_width = "default" | |
tab_width = 4 | |
colored_output = true | |
true_color = true | |
header = true | |
line_numbers = true | |
grid = false | |
vcs_modification_markers = true | |
snip = true | |
wrapping_mode = "NoWrapping" | |
use_italics = true | |
paging_mode = "QuitIfOneScreen" | |
pager = "less" | |
theme = "Dracula" | |
[env] | |
CARGO_HOME="/home/mib/.cargo" | |
GNUPGHOME="/home/mib/.gnupg" | |
RUSTUP_HOME="/home/mib/.rustup" | |
EDITOR="nvim" | |
PAGER="less" | |
OS="Linux" |
Yeah! I noticed the new config, as I was wondering why my history-size was not being respected and only at 100. :-)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm experimenting with
zoxide
myself and found your aliases useful. Thank you!Just a tip here. In version 0.18.1 you need to put the line editor settings in a group like this.
we also now have
skip_welcome_message = true
available