aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2022-05-04 00:42:59 -0600
committerBryson Steck <steck.bryson@gmail.com>2022-05-04 00:42:59 -0600
commit18e4d3d1a3bc683465350b0d0e3a3ba46dea5a22 (patch)
tree0777280afc5cf9170d432a0ce9665cf8db030e94
parent8b4eb008dd96bfe3dee3a3c970f1a7cb8609114f (diff)
downloaddotfiles-18e4d3d1a3bc683465350b0d0e3a3ba46dea5a22.tar
dotfiles-18e4d3d1a3bc683465350b0d0e3a3ba46dea5a22.tar.gz
dotfiles-18e4d3d1a3bc683465350b0d0e3a3ba46dea5a22.tar.bz2
add new install script
-rw-r--r--bash/.bash/04-other.bash3
-rw-r--r--install.sh20
2 files changed, 23 insertions, 0 deletions
diff --git a/bash/.bash/04-other.bash b/bash/.bash/04-other.bash
index e69de29..bfc494c 100644
--- a/bash/.bash/04-other.bash
+++ b/bash/.bash/04-other.bash
@@ -0,0 +1,3 @@
+#if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
+# exec tmux
+#fi
diff --git a/install.sh b/install.sh
new file mode 100644
index 0000000..7f4dbde
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# bash
+if [[ -d $HOME/.bash ]]; then
+ mv $HOME/.bash $HOME/.bash.old
+fi
+if [[ -f $HOME/.bash_profile ]]; then
+ mv $HOME/.bash_profile $HOME/.bash_profile.old
+fi
+if [[ -f $HOME/.bashrc ]]; then
+ mv $HOME/.bashrc $HOME/.bashrc.old
+fi
+ln -s ./bash/.bash $HOME/.bash
+ln -P ./bash/.bash_profile $HOME/.bash_profile
+ln -P ./bash/.bashrc $HOME/.bashrc
+source $HOME/.bash_profile
+
+echo "Linked bash. Press [ENTER] to link x stuff (alacritty, firefox, xinit). Otherwise press ^C"
+read
+