refactor: 简化仓库路径,移除硬编码的 rebuild/update 命令和安装脚本
This commit is contained in:
@@ -24,8 +24,6 @@
|
||||
# Network
|
||||
http = "xh";
|
||||
|
||||
# Nix
|
||||
update = "nix flake update --flake ~/Developer/nix-config";
|
||||
};
|
||||
|
||||
interactiveShellInit = ''
|
||||
@@ -41,14 +39,6 @@
|
||||
# Sudo: double Escape to prepend sudo
|
||||
bind \e\e 'fish_commandline_prepend sudo'
|
||||
|
||||
# Platform-specific rebuild command (derive flake attr from hostname)
|
||||
if test (uname) = Darwin
|
||||
set -l attr (scutil --get LocalHostName | string lower | string replace 'awesome-' "")
|
||||
abbr --add rebuild "sudo darwin-rebuild switch --flake ~/Developer/nix-config#$attr"
|
||||
else
|
||||
abbr --add rebuild "sudo nixos-rebuild switch --flake ~/Developer/nix-config#wsl"
|
||||
end
|
||||
|
||||
# WSL clipboard
|
||||
if set -q WSL_DISTRO_NAME
|
||||
alias pbcopy clip.exe
|
||||
|
||||
Reference in New Issue
Block a user