mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
Setup hooks for chezmoi apply, setup nushell
This commit is contained in:
parent
fe689a9a67
commit
2e6db891ec
7 changed files with 38 additions and 89 deletions
|
|
@ -1,44 +1,15 @@
|
|||
{pkgs, ...}: {
|
||||
{config, ...}: {
|
||||
programs.nushell = {
|
||||
enable = true;
|
||||
|
||||
envFile = {
|
||||
text = ''
|
||||
$env.EDITOR = hx
|
||||
$env.GIT_EDITOR = $env.EDITOR
|
||||
$env.DEBMAIL = "tyler@tylermayoff.com"
|
||||
$env.XDG_CONFIG_HOME = "$HOME/.config"
|
||||
$env.XDG_CACHE_HOME = "$HOME/.cache"
|
||||
$env.XDG_DATA_HOME = "$HOME/.local/share"
|
||||
$env.XDG_STATE_HOME = "$HOME/.local/state"
|
||||
shellAliases =
|
||||
config.home.shellAliases;
|
||||
|
||||
zoxide init nushell | save -f ~/.config/nushell/zoxide.nu
|
||||
'';
|
||||
};
|
||||
extraConfig = ''
|
||||
$env.config.show_banner = false
|
||||
|
||||
shellAliases = {
|
||||
# Git
|
||||
gc = "git commit";
|
||||
gcm = "git commit -m";
|
||||
gac = "git add . and git commit";
|
||||
gacp = "gac and git push";
|
||||
gs = "git status";
|
||||
|
||||
yac = "yadm add --interactive and yadm commit";
|
||||
yacp = "yac and yadm push";
|
||||
|
||||
# nix
|
||||
flake = "nix flake";
|
||||
|
||||
# home-manager
|
||||
hm-upgrade = "nix flake update --flake ~/.config/home-manager/";
|
||||
hm-update = "home-manager switch --impure";
|
||||
};
|
||||
|
||||
configFile = {
|
||||
text = ''
|
||||
source ~/.config/nushell/zoxide.nu
|
||||
'';
|
||||
};
|
||||
def gac [] { git add .; git commit }
|
||||
def gacp [] { gac; git push }
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue