mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-09-07 12:10:45 +02:00
move some scripts to .nix
This commit is contained in:
@@ -45,9 +45,7 @@
|
||||
|
||||
set -l rel_file (realpath --relative-to=$config_dir $file)
|
||||
|
||||
if nh home switch $config_dir -c ${
|
||||
if isNixOS then "nixos" else "arch"
|
||||
}" -b backup
|
||||
if nh home switch $config_dir -c ${if isNixOS then "nixos" else "arch"}
|
||||
git add -A
|
||||
set commit_msg "update: $rel_file"
|
||||
git commit -m "$commit_msg"
|
||||
@@ -61,6 +59,11 @@
|
||||
'';
|
||||
};
|
||||
|
||||
reload_dotfiles = {
|
||||
body = # fish
|
||||
"nh home switch ~/.config/home-manager -c ${if isNixOS then "nixos" else "arch"}";
|
||||
};
|
||||
|
||||
ls = {
|
||||
body = # fish
|
||||
"eza --long --icons --group-directories-first --git $argv";
|
||||
|
||||
Reference in New Issue
Block a user