1
0

Compare commits

...

3 Commits

Author SHA1 Message Date
0e86305585 Updated the README.md 2025-09-22 20:24:10 +02:00
0bd8ffd297 Added the dotfiles for the Fish shell 2025-09-22 20:24:02 +02:00
eace0f1c2d Updated the README.md 2025-09-18 13:35:20 +02:00
7 changed files with 53 additions and 1 deletions

1
.chezmoiroot Normal file
View File

@@ -0,0 +1 @@
/home

View File

@@ -1,2 +1,19 @@
# dotfiles
<div align="center">
# ~/.dotfiles 🏡
[![chezmoi](https://img.shields.io/badge/chezmoi-4051b5)](https://chezmoi.io/)
[![MIT License](https://img.shields.io/badge/License-MIT-dark_green)](https://choosealicense.com/licenses/mit/)
</div><br>
> My dotfiles, managed with [chezmoi](https://chezmoi.io/)
## Usage
Install [chezmoi](https://chezmoi.io/install/), then run:
```sh
chezmoi init git.nicolabelluti.me/nicolabelluti
chezmoi apply
```

View File

@@ -0,0 +1,2 @@
# Don't greet the user every time they open the shell
set fish_greeting

View File

@@ -0,0 +1,32 @@
#!/bin/bash
{{ if false -}}
echo "This script must be run in Arch Linux"
exit 1
{{ end -}}
set -eu
{{ if ne .chezmoi.osRelease.id "arch" -}}
echo "You're not running Arch Linux. Skipping..."
exit 0
{{ end -}}
while true; do
read -p "Do you want to run the Arch Linux configuration script? [Y/n] " REPLY
# Treat an empty response as the default "Y"
REPLY=${REPLY:-Y}
case "$REPLY" in
y|Y) break ;;
n|N) exit 0 ;;
*) echo "Unrecognized option. Please answer Y or n." ;;
esac
done
set -x
# Install the Fish shell
sudo pacman --noconfirm -S fish
sudo chsh -s "$(which fish)" $USER