Skip to content

Commit

Permalink
Change dotfiles location to ~/dotfiles
Browse files Browse the repository at this point in the history
This aligns more with other people's defaults, notably in VSCode
Devcontainers.
  • Loading branch information
lindhe committed Jan 6, 2025
1 parent 941d323 commit 86cdc33
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .zsh_aliases
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# shellcheck disable=SC2148
# vim: foldmethod=marker

declare -r DOTFILES_DIR="${HOME}/git/lindhe/dotfiles"
declare -r DOTFILES_DIR="${HOME}/dotfiles"
declare -r SCRIPTS_DIR="${HOME}/git/lindhe/scripts"

alias .....="cd ../../../.."
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ them easily, so I'll try to keep a list of them here:
## Usage

```shell
git clone https://github.com/lindhe/dotfiles.git ~/git/lindhe/dotfiles
git clone https://github.com/lindhe/dotfiles.git ~/dotfiles
git clone https://github.com/lindhe/scripts.git ~/git/lindhe/scripts
~/git/lindhe/dotfiles/setup.sh
~/dotfiles/setup.sh
```

### Install dependencies
Expand Down Expand Up @@ -68,7 +68,7 @@ sudo snap install \
```

```
export DOTFILES=~/git/lindhe/dotfiles
export DOTFILES=~/dotfiles
pushd ~
ln -fs "${DOTFILES:?}/.zsh_server" .
Expand All @@ -93,7 +93,7 @@ sudo ipmitool sensor thresh FAN3 lower 0 100 200

```shell
sudo locale-gen sv_SE.UTF-8
cat ~/git/lindhe/dotfiles/locale/sv_SE | sudo tee -a /etc/default/locale
cat ~/dotfiles/locale/sv_SE | sudo tee -a /etc/default/locale
```

- [ ] Set NeoVim as default editor:
Expand Down
6 changes: 2 additions & 4 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

set -euo pipefail

declare -r GIT_DIR="${HOME}/git/lindhe"

declare -r DOTFILES="${GIT_DIR}/dotfiles"
declare -r SCRIPTS="${GIT_DIR}/scripts"
declare -r DOTFILES="${HOME}/dotfiles"
declare -r SCRIPTS="${HOME}/git/lindhe/scripts"

cd ~

Expand Down
2 changes: 1 addition & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fail() {
exit "${2:-1}"
}

readonly DOTFILES="${HOME}/git/lindhe/dotfiles"
readonly DOTFILES="${HOME}/dotfiles"

while [[ ${ready:-x} != 'y' ]]; do
echo "Have you cloned dotfiles into ${DOTFILES}? (y/n)"
Expand Down

0 comments on commit 86cdc33

Please sign in to comment.