working aliases

This commit is contained in:
Daniel Bulant 2025-04-06 22:33:32 +02:00
parent 397ff8381f
commit fcf9b89ba2
No known key found for this signature in database
2 changed files with 829 additions and 837 deletions

View file

@ -1,14 +1,12 @@
export-env { # Nushell Config File
#
# version = 0.83.1
# Nushell Config File # For more information on defining custom themes, see
# # https://www.nushell.sh/book/coloring_and_theming.html
# version = 0.83.1 # And here is the theme collection
# https://github.com/nushell/nu_scripts/tree/main/themes
# For more information on defining custom themes, see let dark_theme = {
# https://www.nushell.sh/book/coloring_and_theming.html
# And here is the theme collection
# https://github.com/nushell/nu_scripts/tree/main/themes
let dark_theme = {
# color for nushell primitives # color for nushell primitives
separator: white separator: white
leading_trailing_space_bg: { attr: n } # no fg, no bg, attr none effectively turns this off leading_trailing_space_bg: { attr: n } # no fg, no bg, attr none effectively turns this off
@ -90,9 +88,9 @@ export-env {
shape_table: blue_bold shape_table: blue_bold
shape_variable: purple shape_variable: purple
shape_vardecl: purple shape_vardecl: purple
} }
let light_theme = { let light_theme = {
# color for nushell primitives # color for nushell primitives
separator: dark_gray separator: dark_gray
leading_trailing_space_bg: { attr: n } # no fg, no bg, attr none effectively turns this off leading_trailing_space_bg: { attr: n } # no fg, no bg, attr none effectively turns this off
@ -174,16 +172,16 @@ export-env {
shape_table: blue_bold shape_table: blue_bold
shape_variable: purple shape_variable: purple
shape_vardecl: purple shape_vardecl: purple
} }
# External completer example # External completer example
# let carapace_completer = {|spans| # let carapace_completer = {|spans|
# carapace $spans.0 nushell $spans | from json # carapace $spans.0 nushell $spans | from json
# } # }
# The default config record. This is where much of your global configuration is setup. # The default config record. This is where much of your global configuration is setup.
$env.config = { $env.config = {
show_banner: false # true or false to enable or disable the welcome banner at startup show_banner: false # true or false to enable or disable the welcome banner at startup
ls: { ls: {
@ -811,25 +809,24 @@ export-env {
event: {edit: capitalizechar} event: {edit: capitalizechar}
} }
] ]
}
# load oh-my-posh config
source ~/.oh-my-posh.nu
print ""
print (fastfetch --pipe false)
alias l = lsd -l
alias g = git
alias gp = git push
alias gs = git status
alias pr = pnpm run
alias prd = pnpm run dev
alias prb = pnpm run build
alias prt = pnpm run test
alias p = pnpm
alias pi = pnpm install
alias c = code .
alias ns = nix-shell --run nu
alias nsp = nix-shell --run nu -p
} }
# load oh-my-posh config
source ~/.oh-my-posh.nu
print ""
print (fastfetch --pipe false)
alias l = lsd -l
alias g = git
alias gp = git push
alias gs = git status
alias pr = pnpm run
alias prd = pnpm run dev
alias prb = pnpm run build
alias prt = pnpm run test
alias p = pnpm
alias pi = pnpm install
alias c = code .
alias ns = nix-shell --run nu
alias nsp = nix-shell --run nu -p

View file

@ -247,12 +247,7 @@ in
# units # units
# ]; # ];
# configFile.source = ./.config/nushell/base-config.nu; # configFile.source = ./.config/nushell/base-config.nu;
configFile.text = ''use base-config.nu''; configFile.text = ''source base-config.nu'';
shellAliases = {
ns = "nix-shell --run nu";
nsp = "nix-shell --run nu -p";
l = "lsd -la";
};
}; };
vscode = { vscode = {
enable = true; enable = true;