feat: init zoxide, add aliases

This commit is contained in:
notohh 2023-03-19 19:31:25 -04:00
parent ec5a82d47e
commit a1f2292470
Signed by: notohh
GPG key ID: BD47506D475EE86D
3 changed files with 18 additions and 9 deletions

View file

@ -1,5 +1,6 @@
{ {
default, default,
pkgs,
... ...
}: { }: {
imports = [ imports = [
@ -10,5 +11,9 @@
./git ./git
./lazygit ./lazygit
]; ];
home.packages = with pkgs; [
bat
zoxide
];
} }

View file

@ -1,5 +1,14 @@
# Nushell Config File # Nushell Config File
source ~/.cache/starship/init.nu
source ~/.zoxide.nu
alias zj = zellij
alias zjd = zellij --layout ../.config/zellij/snowflake.kdl
alias zjs = zellij --layout ./config/zellij/ssh.kdl
alias lg = lazygit
alias cat = bat
module completions { module completions {
# Custom completions for external commands (those outside of Nushell) # Custom completions for external commands (those outside of Nushell)
# Each completions has two parts: the form of the external command, including its flags and parameters # Each completions has two parts: the form of the external command, including its flags and parameters
@ -264,7 +273,7 @@ let-env config = {
} }
} }
history: { history: {
max_size: 1000 # Session has to be reloaded for this to take effect max_size: 10000 # Session has to be reloaded for this to take effect
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 # Enable to share history between multiple sessions, else you have to close the session to write history to file
file_format: "plaintext" # "sqlite" or "plaintext" file_format: "plaintext" # "sqlite" or "plaintext"
} }
@ -534,10 +543,4 @@ let-env config = {
] ]
} }
source ~/.cache/starship/init.nu
alias ze = zellij
alias zed = zellij --layout ../.config/zellij/snowflake.kdl
alias zes = zellij --layout ./config/zellij/ssh.kdl

View file

@ -60,6 +60,7 @@ let-env NU_PLUGIN_DIRS = [
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu
zoxide init nushell | save -f ~/.zoxide.nu
# To add entries to PATH (on Windows you might use Path), you can use the following pattern: # To add entries to PATH (on Windows you might use Path), you can use the following pattern:
# let-env PATH = ($env.PATH | split row (char esep) | prepend '/some/path') # let-env PATH = ($env.PATH | split row (char esep) | prepend '/some/path')