yardnsm / .setup

๐Ÿ›  Set it up, yo.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.setup

Build Status

These are my setup scripts for setting up a new machine. It installs my dotfiles, which placed by default under ~/.config.

Prerequisites

Just make sure you have the recent versions of git and bash. That's is.

Installation

Simply run the following commands in your terminal:

# Clone this repository
$ git clone https://github.com/yardnsm/.setup ~/dev/.setup

# Run the installation script
$ cd dev/.setup
$ ./install.sh

Profiles

A "profile" is shell scripts that sets up environment variables which configure the installation of the dotfiles. They are located under ./.profiles and should export the following environment variables:

$SYMLINKS

An array that contains the files to symlink from the dotfiles repository to $HOME, or any other directory on the system.

export SYMLINKS=(
  # By default, items will be symlinked from the dotfiles repository (located under ~/.config) to
  # $HOME.

  # This will symlink ~/.config/zsh/.zshenv to ~/.zshenv
  "zsh/.zshenv"

  # You can specify a name for the target. The following will symlink ~/.config/tmux/tmux.conf to
  # ~/.tmux.conf
  "tmux/tmux.conf .tmux.conf"

  # Of course, you can symlinks files to anywhere in the system. The following will symlink
  # ~/.config/bash/bashrc to /etc/bashrc
  "bash/bashrc /etc/bashrc"
)

$TOPICS

Every non-hidden directory in this repo is considered as a "topic". A topic must have an install.sh file that will run during the installation of this repo.

The $TOPICS variable specifies the topics to run when installing the profile.

export TOPICS=(
  common
  homebrew
  macos
  nvim
  ssh
  zsh
)

$PACMAN_EXTRAS

An array of packages to install via pacman, in addition to the packages installed in the "pacman" topic.

export PACMAN_EXTRAS=(
  "git"
)

$AUR_EXTRAS

An array of packages to install via yay, in addition to the packages installed in the "pacman" topic.

export AUR_EXTRAS=(
  "fnm"
)

This repository is a squashed fork of yardnsm/.config@053dc7b.

License

MIT ยฉ Yarden Sod-Moriah

About

๐Ÿ›  Set it up, yo.

License:MIT License


Languages

Language:Shell 100.0%