Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allezxandre/dotfiles
Shared settings for Unix-based setups
https://github.com/allezxandre/dotfiles
Last synced: 3 days ago
JSON representation
Shared settings for Unix-based setups
- Host: GitHub
- URL: https://github.com/allezxandre/dotfiles
- Owner: allezxandre
- Created: 2021-04-14T14:47:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-09T11:55:07.000Z (about 1 year ago)
- Last Synced: 2023-11-09T13:11:06.742Z (about 1 year ago)
- Language: Shell
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotfiles
Shared settings for Unix-based setups
## Install
### Clone the repository
```bash
git clone https://github.com/Allezxandre/dotfiles.git $HOME/.dotfiles
```### Install ZSH
```bash
sudo apt update && sudo apt install zsh -y
```Create a `.zshrc` file that will source all ZSH settings:
```bash
touch $HOME/.zshrc
cat <> $HOME/.zshrc
# Source all files in the ZSH dotfiles subfolder
for config_file (\$HOME/.dotfiles/zsh/*.zsh) source \$config_file
EOT
```Start ZSH:
```bash
zsh
```Set ZSH as the default shell:
```bash
chsh -s $(which zsh)
```### Link Git settings
```bash
if [ -f "$HOME/.gitconfig" ]; then
echo "Git Config is already present. Skipping..."
else
ln -s "$HOME/.dotfiles/git/gitconfig" "$HOME/.gitconfig"
echo "Git was successfully linked."
fi
```### Install Nix
```bash
# Multi-user set-up:
sh <(curl -L https://nixos.org/nix/install) --daemon
# OR
sh <(curl -L https://nixos.org/nix/install)
```