diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 674e4c5..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "dotdrop"] - path = dotdrop - url = https://github.com/deadc0de6/dotdrop.git diff --git a/dotdrop b/dotdrop deleted file mode 160000 index d2a785f..0000000 --- a/dotdrop +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d2a785fd2fbcedf063b97795c284c2932ff8aa6a diff --git a/home/.config/zsh/04-aliases.zsh b/home/.config/zsh/04-aliases.zsh index 02a058e..f246bb9 100644 --- a/home/.config/zsh/04-aliases.zsh +++ b/home/.config/zsh/04-aliases.zsh @@ -165,10 +165,17 @@ alias i='iwctl station wlan0' cpufreq() { watch -n 1 eval "cat /proc/cpuinfo | grep MHz" } # dotdrop -dotdrop() { source $DOTREPO/secrets/secrets && UID=$(id -u) $DOTREPO/dotdrop/dotdrop.sh --cfg=$DOTREPO/config.toml {%@@ if profile == "Isengard" @@%} -p Isengard{%@@ endif @@%} $@ } -sdotdrop() { source $DOTREPO/secrets/secrets && sudo -E $DOTREPO/dotdrop/dotdrop.sh --cfg=$DOTREPO/config-root.toml $@ } -updatesecrets() { bash $DOTREPO/secrets/secrets.sh; chmod 600 $DOTREPO/secrets/secrets } +alias dotdrop="source $DOTREPO/secrets/secrets && UID=$(id -u) dotdrop --cfg=$DOTREPO/config.toml {%@@ if profile == "Isengard" @@%} -p Isengard{%@@ endif @@%}" + + +alias sdotdrop="source $DOTREPO/secrets/secrets && sudo -E dotdrop --cfg=$DOTREPO/config-root.toml" compdef _dotdrop-completion.zsh sdotdrop + +updatesecrets() { + bash $DOTREPO/secrets/secrets.sh + chmod 600 $DOTREPO/secrets/secrets +} + alias dotgit='git -C $DOTREPO' dotsync() { cd $DOTREPO && gac && gpull && gpush && cd $OLDPWD }