Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .bash_profile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# shellcheck disable=SC2148
# shellcheck disable=SC1091

# Fix to prevent LMStudio polluting my dotfiles at every start
# https://github.com/lmstudio-ai/lmstudio-bug-tracker/issues/656#issuecomment-2938234807
Expand Down
1 change: 1 addition & 0 deletions .bashrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# shellcheck disable=SC2148
# shellcheck disable=SC1091

# Fix to prevent LMStudio polluting my dotfiles at every start
# https://github.com/lmstudio-ai/lmstudio-bug-tracker/issues/656#issuecomment-2938234807
Expand Down
1 change: 1 addition & 0 deletions .functions
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# shellcheck disable=SC2148
# shellcheck disable=SC1091

# go to dotfiles location
dot() {
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Tests

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
# Enable manual triggering
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

steps:
# Checkout the repository code
- name: Checkout repository
uses: actions/checkout@v4

# Install dotfiles
- name: Install dotfiles
shell: bash -ieo pipefail {0}
env:
DOTFILES_REPO_DIR: ${{ github.workspace }}
run: |
./install.sh --deps --force
ll ~
1 change: 1 addition & 0 deletions .profile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# shellcheck disable=SC2148
# shellcheck disable=SC1091

# Fix to prevent LMStudio polluting my dotfiles at every start
# https://github.com/lmstudio-ai/lmstudio-bug-tracker/issues/656#issuecomment-2938234807
Expand Down
1 change: 1 addition & 0 deletions .stow-local-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ README.md
backup
.git
.gitignore
.github
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# dotfiles

![Tests](https://github.com/pasquale95/dotfiles/actions/workflows/test.yaml/badge.svg)

Collection of dotfiles that can be used to quickly setup a new macOS.

## Table of Contents <!-- omit in toc -->
Expand Down
13 changes: 8 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,15 @@ echo "🕒 Installing dotfiles..."
if [[ INSTALL_DEPS -eq 1 ]]; then
# install all the additional dependencies using brew
"${DOTFILES_REPO_DIR}/brew.sh"
fi

# install missing dependency
if (! command -v stow >/dev/null 2>&1); then
echo "stow is not installed. Installing it..."
brew install stow
# source brew env
if [ -f /opt/homebrew/bin/brew ]; then
# typical path where resides on macOS
eval "$(/opt/homebrew/bin/brew shellenv)"
elif [ -f /home/linuxbrew/.linuxbrew/bin/brew ]; then
# typical path where resides on linux
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi
fi

if [[ INSTALL_FORCE -eq 1 ]]; then
Expand Down
Loading