Compare commits
3 Commits
main
...
0e86305585
Author | SHA1 | Date | |
---|---|---|---|
0e86305585 | |||
0bd8ffd297 | |||
eace0f1c2d |
1
.chezmoiroot
Normal file
1
.chezmoiroot
Normal file
@@ -0,0 +1 @@
|
||||
/home
|
19
README.md
19
README.md
@@ -1,2 +1,19 @@
|
||||
# dotfiles
|
||||
<div align="center">
|
||||
|
||||
# ~/.dotfiles 🏡
|
||||
|
||||
[](https://chezmoi.io/)
|
||||
[](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
|
||||
```
|
||||
|
0
home/private_dot_config/fish/completions/.gitkeep
Normal file
0
home/private_dot_config/fish/completions/.gitkeep
Normal file
2
home/private_dot_config/fish/conf.d/greeting.fish
Normal file
2
home/private_dot_config/fish/conf.d/greeting.fish
Normal file
@@ -0,0 +1,2 @@
|
||||
# Don't greet the user every time they open the shell
|
||||
set fish_greeting
|
0
home/private_dot_config/fish/functions/.gitkeep
Normal file
0
home/private_dot_config/fish/functions/.gitkeep
Normal file
0
home/private_dot_config/fish/remove_config.fish
Normal file
0
home/private_dot_config/fish/remove_config.fish
Normal file
32
home/run_onchange_before_archlinux.sh.tmpl
Normal file
32
home/run_onchange_before_archlinux.sh.tmpl
Normal 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
|
Reference in New Issue
Block a user