From 9d29095e0d82b6a915978a3862258bfc215d7710 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Thu, 11 Jul 2019 22:56:33 +0200 Subject: [PATCH] [bash] Move configuration to separate folder --- bash/Makefile | 15 +++++++++++++++ bash_aliases => bash/bash_aliases | 0 bashrc => bash/bashrc | 0 install.sh | 4 ---- 4 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 bash/Makefile rename bash_aliases => bash/bash_aliases (100%) rename bashrc => bash/bashrc (100%) diff --git a/bash/Makefile b/bash/Makefile new file mode 100644 index 0000000..a3165fe --- /dev/null +++ b/bash/Makefile @@ -0,0 +1,15 @@ +BASH_ALIASES=bash_aliases +BASH_ALIASES_OUT=$(HOME)/.bash_aliases +BASHRC=bashrc +BASHRC_OUT=$(HOME)/.bashrc + +.PHONY: clean_install + +clean_install: clean install + +clean: + rm -f $(BASH_ALIASES_OUT) $(BASHRC_OUT) + +install: + cp $(BASH_ALIASES) $(BASH_ALIASES_OUT) + cp $(BASHRC) $(BASHRC_OUT) diff --git a/bash_aliases b/bash/bash_aliases similarity index 100% rename from bash_aliases rename to bash/bash_aliases diff --git a/bashrc b/bash/bashrc similarity index 100% rename from bashrc rename to bash/bashrc diff --git a/install.sh b/install.sh index 412b0b1..ac9c101 100755 --- a/install.sh +++ b/install.sh @@ -1,8 +1,6 @@ #!/bin/sh rm -f $HOME/.vimrc -rm -f $HOME/.bashrc -rm -f $HOME/.bash_aliases rm -f $HOME/.ideavimrc rm -f $HOME/.config/i3/config rm -f $HOME/.config/dunst/dunstrc @@ -21,8 +19,6 @@ mkdir -p $HOME/.ssh mkdir -p $HOME/.local/share/applications ln -s $(pwd)/vimrc $HOME/.vimrc -ln -s $(pwd)/bashrc $HOME/.bashrc -ln -s $(pwd)/bash_aliases $HOME/.bash_aliases ln -s $(pwd)/ideavimrc $HOME/.ideavimrc ln -s $(pwd)/i3-config $HOME/.config/i3/config ln -s $(pwd)/i3blocks $HOME/.config/i3blocks