-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
derekhenderson818@gmail.com
authored and
derekhenderson818@gmail.com
committed
Oct 12, 2023
1 parent
6796909
commit ce89d46
Showing
6 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
echo "Hello!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Test | ||
on: [push] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run setup.sh | ||
run: pwd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
# dotfiles | ||
# dotfiles | ||
|
||
1. `$ cd ~` | ||
2. `$ git clone https://github.com/D3r3k23/dotfiles` | ||
3. `$ dotfiles/setup.sh` | ||
4. `$ source .bashrc` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Run from HOME directory | ||
|
||
dotfiles=(.bashrc .vimrc) | ||
|
||
autogen_begin="# AUTOGEN: begin (dotfiles/setup.sh)" | ||
autogen_end="# AUTOGEN: end" | ||
|
||
for dotfile in ${dotfiles[@]}; do | ||
if ! [ -f $dotfile ]; then | ||
add_dotfile=true | ||
else | ||
if [ $(grep -xc "$autogen_begin" $dotfile) -eq 0 ]; then | ||
echo HERE | ||
echo "" >> $dotfile | ||
add_dotfile=true | ||
else | ||
add_dotfile=false | ||
fi | ||
fi | ||
if [ "$add_dotfile" == true ]; then | ||
echo $autogen_begin >> $dotfile | ||
echo "if [ -f dotfiles/$dotfile ]; then" >> $dotfile | ||
echo " source dotfiles/$dotfile" >> $dotfile | ||
echo "fi" >> $dotfile | ||
echo $autogen_end >> $dotfile | ||
fi | ||
done |