feat: init zoxide, add aliases
This commit is contained in:
parent
ec5a82d47e
commit
a1f2292470
3 changed files with 18 additions and 9 deletions
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
default,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
|
@ -11,4 +12,8 @@
|
|||
./lazygit
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
bat
|
||||
zoxide
|
||||
];
|
||||
}
|
|
@ -1,5 +1,14 @@
|
|||
# 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 {
|
||||
# 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
|
||||
|
@ -264,7 +273,7 @@ let-env config = {
|
|||
}
|
||||
}
|
||||
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
|
||||
file_format: "plaintext" # "sqlite" or "plaintext"
|
||||
}
|
||||
|
@ -535,9 +544,3 @@ 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
|
||||
|
|
|
@ -60,6 +60,7 @@ let-env NU_PLUGIN_DIRS = [
|
|||
|
||||
mkdir ~/.cache/starship
|
||||
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:
|
||||
# let-env PATH = ($env.PATH | split row (char esep) | prepend '/some/path')
|
||||
|
|
Loading…
Reference in a new issue