From 9aee72841ef6607b9f619a2013f0011797a625f1 Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Fri, 9 Apr 2021 13:20:29 +0300 Subject: [PATCH] zoxide: add nushell + xonsh init --- home/.config/nu/config.toml | 16 ++++++++++++++++ home/.xonshrc | 1 + 2 files changed, 17 insertions(+) create mode 100644 home/.config/nu/config.toml create mode 100644 home/.xonshrc diff --git a/home/.config/nu/config.toml b/home/.config/nu/config.toml new file mode 100644 index 0000000..eb498cd --- /dev/null +++ b/home/.config/nu/config.toml @@ -0,0 +1,16 @@ +skip_welcome_message = true +prompt = "__zoxide_hook; starship prompt" +startup = [ + "zoxide init nushell --hook prompt | save ~/.local/share/nu/zoxide.nu", + "source ~/.local/share/nu/zoxide.nu" + ] + +[line_editor] +completion_type = "list" +edit_mode = "vi" + +[textview] +pager = "less -R" +paging_mode = "quitifonescreen" +true_color = true +theme = "base16" diff --git a/home/.xonshrc b/home/.xonshrc new file mode 100644 index 0000000..afee088 --- /dev/null +++ b/home/.xonshrc @@ -0,0 +1 @@ +execx($(zoxide init xonsh), 'exec', __xonsh__.ctx, filename='zoxide')