- Shell 100%
| .config | Update alacritty config to match version 0.16.1 | |
| bin | Remove mnt-personal.command | |
| .bashrc | Add some paths. Need to generalize somewhere. | |
| .custom | Fix scripts from ~/bin not loaded. | |
| .gitignore | Fix .DS_Store for gitignore | |
| .hushlogin | Disable login message using .hushlogin | |
| .p10k.zsh | p10k: configure theme | |
| .shell_aliases | Add artisan command to alias | |
| .stow-local-ignore | New installation script | |
| .zshrc | Add some paths. Need to generalize somewhere. | |
| install | Fix stowing install script | |
| README.md | Update README.md | |
dotfiles
dotfiles configuration for my Unix-based OS. It includes some configs, e.g .zshrc, .bashrc, .shell_aliases, and more.
This repo is meant to build a portable and reproducible development environments.
Usage
Note
Using this guide may replace all your current configurations. I recommend you to create backups for those configs.
Warning
I am not responsible for any loss of your configuration files.
To use these configs, you first need to clone this repository in your $HOME (or ~) directory.
git clone https://github.com/risangbaskoro/dotfiles.git ~/dotfiles
# or
git clone https://codeberg.org/baskoro/dotfiles.git ~/dotfiles
Then follow through the installation process below:
Install Using the Installation Script
I have provided an installation script, named install. Here's a summary of what it does:
- If GNU Stow is not installed, try to install GNU Stow using your system's package manager.
- Using GNU Stow, create symlinks for all the files inside the
dotfilesdirectory in the$HOMEdirectory.
To use the installation script, simply call it:
chmod +x ~/dotfiles/install
bash ~/dotfiles/install
Note
If the system already has some configuration files that the
dotfileshas, it will abort thestowprocess. Stow is already installed by then.For each warning that
stowthrows, create a backup for those files.For example, if
.bashrcalready exists in your$HOMEdirectory, you can rename it to.bashrc.backupusing themvcommand:mv ~/.bashrc ~/.bashrc.backupSee: https://www.gnu.org/software/stow/manual/stow.html#Conflicts
Done. Your shell, terminal, and all other configs are there.
Install Manually Using GNU Stow
Then, you will need to have a CLI tool called stow. stow is a symlink manager which takes these dotfiles from your $HOME directory and makes them appear to be installed in the same place. In other words, .zshrc could be a symlink to ~/dotfiles/.zshrc.
You can install stow via your favorite package manager.
# For macOS using Homebrew
brew install stow
# For Arch Linux using pacman
pacman -S stow
After that, you can start create symlinks for all the config files:
# From $HOME directory
cd ~
stow dotfiles
# or from dotfiles directory
cd ~/dotfiles
stow .
Voila! You can start right away!
License
This repository does not have a license. Use it freely.