These are my setup scripts for setting up a new machine. It installs my
dotfiles, which placed by default under ~/.config
.
Just make sure you have the recent versions of git
and bash
. That's is.
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
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:
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"
)
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
)
An array of packages to install via pacman
, in addition to the packages installed in the "pacman"
topic.
export PACMAN_EXTRAS=(
"git"
)
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
.
MIT © Yarden Sod-Moriah