aboutsummaryrefslogtreecommitdiffstats
path: root/bash/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-25 14:33:06 +0200
committerMattias Andrée <maandree@kth.se>2021-06-25 14:33:06 +0200
commit564263512e6425ae68ef431350edcfde8a3f1075 (patch)
tree2e483266b85a032d7425ec838dd7ac0283dd19c5 /bash/Makefile
parentFirst commit (diff)
downloaddotfiles-564263512e6425ae68ef431350edcfde8a3f1075.tar.gz
dotfiles-564263512e6425ae68ef431350edcfde8a3f1075.tar.bz2
dotfiles-564263512e6425ae68ef431350edcfde8a3f1075.tar.xz
Use asroot instead of sudo and add emacs configs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--bash/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/bash/Makefile b/bash/Makefile
index 7ea782a..e1e62ae 100644
--- a/bash/Makefile
+++ b/bash/Makefile
@@ -25,7 +25,13 @@ install:
ln -sf -- ~/.dotfiles/bash/bashrc_palette ~/.config/bash/bashrc_palette
ln -sf -- ~/.dotfiles/bash/bashrc_prompt ~/.config/bash/bashrc_prompt
ln -sf -- ~/.dotfiles/bash/aliases ~/.config/bash/aliases
- ln -sf -- ~/.dotfiles/bash/aliases-Zenith ~/.config/bash/aliases-Zenith
+ if test "$$(hostname | tr '[[:upper:]]' '[[:lower:]]')" = zenith; then \
+ test "$$(hostname)" = Zenith && \
+ pacman -Qq -- asroot </dev/null >/dev/null && \
+ pacman -Qq -- gnupg </dev/null >/dev/null && \
+ pacman -Qq -- cryptsetup </dev/null >/dev/null && \
+ ln -sf -- ~/.dotfiles/bash/aliases-Zenith ~/.config/bash/aliases-Zenith; \
+ fi
uninstall:
-unlink -- ~/.bash_history