diff options
author | Mattias Andrée <maandree@kth.se> | 2021-06-25 12:56:30 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-06-25 12:56:30 +0200 |
commit | 5a7db2f34aa6a6787d98a001b6d28be97f36abf4 (patch) | |
tree | 52db199005cc5daee35b5c0e9b3d28b534449e1c /bash/Makefile | |
download | dotfiles-5a7db2f34aa6a6787d98a001b6d28be97f36abf4.tar.gz dotfiles-5a7db2f34aa6a6787d98a001b6d28be97f36abf4.tar.bz2 dotfiles-5a7db2f34aa6a6787d98a001b6d28be97f36abf4.tar.xz |
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | bash/Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/bash/Makefile b/bash/Makefile new file mode 100644 index 0000000..7ea782a --- /dev/null +++ b/bash/Makefile @@ -0,0 +1,47 @@ +.POSIX: + +install: + mkdir -p -- ~/.var/cache + mkdir -p -- ~/.config/bash + touch -- ~/.var/cache/bash_history + test ! -d ~/.bash_history + test ! -d ~/.bash_logout + test ! -d ~/.bash_profile + test ! -d ~/.bashrc + test ! -d ~/.config/bash/logout + test ! -d ~/.config/bash/profile + test ! -d ~/.config/bash/bashrc + test ! -d ~/.config/bash/bashrc_palette + test ! -d ~/.config/bash/bashrc_prompt + test ! -d ~/.config/bash/aliases + test ! -d ~/.config/bash/aliases-Zenith + ln -sf -- .var/cache/bash_history ~/.bash_history + ln -sf -- .config/bash/logout ~/.bash_logout + ln -sf -- .config/bash/profile ~/.bash_profile + ln -sf -- .config/bash/bashrc ~/.bashrc + ln -sf -- ~/.dotfiles/bash/logout ~/.config/bash/logout + ln -sf -- ~/.dotfiles/bash/profile ~/.config/bash/profile + ln -sf -- ~/.dotfiles/bash/bashrc ~/.config/bash/bashrc + 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 + +uninstall: + -unlink -- ~/.bash_history + -unlink -- ~/.bash_logout + -unlink -- ~/.bash_profile + -unlink -- ~/.bashrc + -rm -f -- ~/.var/cache/bash_history + -unlink -- ~/.config/bash/logout + -unlink -- ~/.config/bash/profile + -unlink -- ~/.config/bash/bashrc + -unlink -- ~/.config/bash/bashrc_palette + -unlink -- ~/.config/bash/bashrc_prompt + -unlink -- ~/.config/bash/aliases + -unlink -- ~/.config/bash/aliases-Zenith + -rmdir -- ~/.config/bash/aliases.d + -rmdir -- ~/.config/bash/bashrc.d + -rmdir -- ~/.config/bash + +.PHONY: install uninstall |