mirror of
https://github.com/danbulant/dotfiles
synced 2026-07-09 21:21:32 +00:00
working aliases
This commit is contained in:
parent
397ff8381f
commit
fcf9b89ba2
2 changed files with 829 additions and 837 deletions
|
|
@ -1,14 +1,12 @@
|
|||
export-env {
|
||||
# Nushell Config File
|
||||
#
|
||||
# version = 0.83.1
|
||||
|
||||
# Nushell Config File
|
||||
#
|
||||
# version = 0.83.1
|
||||
|
||||
# For more information on defining custom themes, see
|
||||
# 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 = {
|
||||
# For more information on defining custom themes, see
|
||||
# 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
|
||||
separator: white
|
||||
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_variable: purple
|
||||
shape_vardecl: purple
|
||||
}
|
||||
}
|
||||
|
||||
let light_theme = {
|
||||
let light_theme = {
|
||||
# color for nushell primitives
|
||||
separator: dark_gray
|
||||
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_variable: purple
|
||||
shape_vardecl: purple
|
||||
}
|
||||
}
|
||||
|
||||
# External completer example
|
||||
# let carapace_completer = {|spans|
|
||||
# carapace $spans.0 nushell $spans | from json
|
||||
# }
|
||||
# External completer example
|
||||
# let carapace_completer = {|spans|
|
||||
# carapace $spans.0 nushell $spans | from json
|
||||
# }
|
||||
|
||||
|
||||
# The default config record. This is where much of your global configuration is setup.
|
||||
$env.config = {
|
||||
# The default config record. This is where much of your global configuration is setup.
|
||||
$env.config = {
|
||||
show_banner: false # true or false to enable or disable the welcome banner at startup
|
||||
|
||||
ls: {
|
||||
|
|
@ -811,25 +809,24 @@ export-env {
|
|||
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
|
||||
7
home.nix
7
home.nix
|
|
@ -247,12 +247,7 @@ in
|
|||
# units
|
||||
# ];
|
||||
# configFile.source = ./.config/nushell/base-config.nu;
|
||||
configFile.text = ''use base-config.nu'';
|
||||
shellAliases = {
|
||||
ns = "nix-shell --run nu";
|
||||
nsp = "nix-shell --run nu -p";
|
||||
l = "lsd -la";
|
||||
};
|
||||
configFile.text = ''source base-config.nu'';
|
||||
};
|
||||
vscode = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue