automatically pull from git in upd
alias
This commit is contained in:
parent
3c9490fe52
commit
0280981e32
1 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,11 @@ def _upd(args: list):
|
|||
"Visual Studio Code user settings": ".config/Code/User/settings.json.bak",
|
||||
"fontconfig": ".config/fontconfig/conf.d/10-hm-fonts.conf.bak"
|
||||
}
|
||||
if not "--no-pull" in args:
|
||||
print(f"{c.BLUE}Pulling {c.YELLOW}NixOS{c.BLUE} configuration from remote{c.END}")
|
||||
run["git", "pull", cwd=path]
|
||||
else:
|
||||
args.remove("--no-pull")
|
||||
if "--rewrite-hardware-configuration" in args:
|
||||
args.remove("--rewrite-hardware-configuration")
|
||||
print(f"{c.BLUE}Updating {c.YELLOW}NixOS{c.BLUE} hardware configuration file for {c.YELLOW}{gethostname()}{c.BLUE}{c.END}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue