Skip to content

Commit

Permalink
Rename shell scripts to include .sh file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Rypac committed Aug 12, 2024
1 parent 9eec98d commit 89ddbd0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is a collection of the configuration and preferences I use to personalise m

If you don't already backup and synchronise your dotfiles, you should! It's simple to do and makes sharing your system config across various machines or other with people a breeze. GitHub [has a very nice guide](https://dotfiles.github.io) that explains the process in greater detail and links to some terrific dotfile resources and examples.

**NOTE:** The [`dotfiles`](./dotfiles) script will _not_ play nicely with existing dotfiles. It may overwrite some of your precious configuration. Use it either as a reference, or to holistically replace your own dotfiles. You have been warned!
**NOTE:** The [`dotfiles.sh`](./dotfiles.sh) script will _not_ play nicely with existing dotfiles. It may overwrite some of your precious configuration. Use it either as a reference, or to holistically replace your own dotfiles. You have been warned!

## Installation

Expand All @@ -13,7 +13,7 @@ Simply run:
```sh
git clone https://github.com/Rypac/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
./dotfiles link
./dotfiles.sh link
```

This will symlink the dotfiles to their appropriate directories. The `dotfiles link` command is idempotent so it can (and should) be run for any new dotfiles you decide to sync.
File renamed without changes.
5 changes: 4 additions & 1 deletion dotfiles → dotfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ dotfiles_link() {
# Source XDG environment variables
. "$DOTFILES_HOME/zsh/.zshenv"

# Link executables
link dotfiles.sh "$XDG_BIN_HOME/dotfiles"
link bin/sqlite-to-json.sh "$XDG_BIN_HOME/sqlite-to-json"

# Link common dotfiles
link_contents bin "$XDG_BIN_HOME"
link alacritty "$XDG_CONFIG_HOME/alacritty"
link fourmolu/fourmolu.yaml "$XDG_CONFIG_HOME/fourmolu.yaml"
link git "$XDG_CONFIG_HOME/git"
Expand Down
3 changes: 0 additions & 3 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,6 @@ fi
# Ensure local executable directory is first on path
path=("$XDG_BIN_HOME" $path)

# Source dotfiles management functions
source "$DOTFILES_HOME/dotfiles"

# Source local zshrc
if [ -r "$ZDOTDIR/.zshrc.local" ]; then
source "$ZDOTDIR/.zshrc.local"
Expand Down

0 comments on commit 89ddbd0

Please sign in to comment.