GitXplorerGitXplorer
s

dotfiles

public
8 stars
1 forks
0 issues

Commits

List of commits on branch master.
Verified
5aa66304d0033c25cdaf84d17ad6d814f6b4b3e7

Merge branch 'master' of https://github.com/sidharthv96/dotfiles

ssidharthv96 committed a year ago
Verified
0376437b2d9b5b81a0036637505c2e9531a5425e

Add bun and deno

ssidharthv96 committed a year ago
Verified
6029d345a51d67f32010a06d0bfb4ba3358763e0

Update .exports

ssidharthv96 committed a year ago
Verified
3d47d995466b0b3916beb6309fe77554d7b5ca34

Misc

ssidharthv96 committed a year ago
Verified
c7aa918ba81c38fc087f8b16b4706174b9a1bc8c

Performance tweaks

ssidharthv96 committed a year ago
Verified
db406b7ecd3eca3391084d91c2b492d907598052

Add pnpm home

ssidharthv96 committed 2 years ago

README

The README file for this repository.

Installation

Warning: If you want to give these dotfiles a try, you should first fork this repository, review the code, and remove things you don’t want or need. Don’t blindly use my settings unless you know what that entails. Use at your own risk!

Using Git and the bootstrap script

You can clone the repository wherever you want. (I like to keep it in ~/dev/dotfiles, with ~/dotfiles as a symlink.) The bootstrapper script will pull in the latest version and copy the files to your home folder.

git clone https://github.com/sidharthv96/dotfiles.git && cd dotfiles && source bootstrap.sh

To update, cd into your local dotfiles repository and then:

source bootstrap.sh

Alternatively, to update while avoiding the confirmation prompt:

set -- -f; source bootstrap.sh

Git-free install

To install these dotfiles without Git:

cd; curl -#L https://github.com/sidharthv96/dotfiles/tarball/main | tar -xzv --strip-components 1 --exclude={README.md,bootstrap.sh,.osx,LICENSE-MIT.txt}

To update later on, just run that command again.

Specify the $PATH

If ~/.path exists, it will be sourced along with the other files, before any feature testing (such as detecting which version of ls is being used) takes place.

Here’s an example ~/.path file that adds /usr/local/bin to the $PATH:

export PATH="/usr/local/bin:$PATH"

Add custom commands without creating a new fork

If ~/.extra exists, it will be sourced along with the other files. You can use this to add a few custom commands without the need to fork this entire repository, or to add commands you don’t want to commit to a public repository.

You could also use ~/.extra to override settings, functions and aliases from my dotfiles repository. It’s probably better to fork this repository instead, though.

Sensible macOS defaults

When setting up a new Mac, you may want to set some sensible macOS defaults:

./.macos

Install Homebrew formulae

When setting up a new Mac, you may want to install some common Homebrew formulae (after installing Homebrew, of course):

./brew.sh

Some of the functionality of these dotfiles depends on formulae installed by brew.sh. If you don’t plan to run brew.sh, you should look carefully through the script and manually install any particularly important ones. A good example is Bash/Git completion: the dotfiles use a special version from Homebrew.

Secrets

Confidential files can be stored safely in the repo using git secret

# To check in
# Put confidential files in `./confidential`
git secret add confidential
git secret hide
git add .

# To access
git secret reveal

# To see diff
git secret changes

Feedback

Suggestions/improvements welcome!

Heavily Inspired by Mathias Bynens' dotfiles