l50 / dotfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotfiles

License Test dotfiles Renovate

These are my dotfiles. Please feel free to check them out and see if anything can be adopted for your own.

Installation

Clone the repo:

git clone --recurse-submodules https://github.com/l50/dotfiles.git

Dependencies

  • Install asdf:

    git clone https://github.com/asdf-vm/asdf.git ~/.asdf
  • Install and use asdf plugins to manage go and python for this project:

    source .asdf

    Alternatively, you can pick and choose which plugins to install:

    # Employ asdf for this project's python:
    source .asdf python
  • Install pre-commit:

    python3 -m pip install --upgrade pip
    python3 -m pip install pre-commit
  • Install Mage:

    go install github.com/magefile/mage@latest

Debian Dependencies

sudo apt-get update
sudo apt-get install -y curl expect jq xclip zsh
# Fix permissions to avoid annoying message
sudo chmod -R 755 /usr/share/zsh
sudo chmod -R 755 /usr/share/zsh/vendor-completions
# If you need to change your shell manually, run this command:
sudo chsh -s /bin/zsh
curl -sS https://webi.sh/shfmt | sh
npm install -g bats

MacOS Dependencies

# Install homebrew
brew install bats-core cask shfmt

oh-my-zsh

bash -c "$(curl -fsSL \
    https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

go-eval

go install github.com/dolmen-go/goeval@latest

Dotfiles

bash install_dot_files.sh

Git user config

Create ~/.gitconfig.userparams with the following:

[user]
    name = Jayson Grace
    email = jayson.e.grace@gmail.com
    username = l50

Test actions locally

act -P --container-architecture linux/amd64
# If it's necessary to test macOS specifically:
act -P macos-latest=-self-hosted

Run bash tests

bash .hooks/run-bats-tests.sh

--

Update submodules

git submodule update --init --recursive

About

License:MIT License


Languages

Language:Shell 90.4%Language:Ruby 6.4%Language:Go 3.1%