Top secret text files that make my world a better place. :')
Make sure you read the About My Dotfiles section if you intend to use these. Currently under construction.
Before you use these (or any) dotfiles, make sure you back your dotfiles up into a directory (you'll find them in your home folder - type ls -a
in the terminal).
Also, make sure you read the About My Dotfiles section before you use these in order to ensure that nothing goes awry.
Dotfiles are meant to be different. What suits me well definitely won't be perfect for you. So I seriously recommend forking this repo and then making it your own.
Note: The bootstrap.exclude.sh script creates symlinks from the dotfiles in this directory to the HOME directory. The script will backup any dotfiles it intends to replace by adding a
.bak
extension, but I recommend making sure that your dotfiles are backed up somewhere safe anyway.
Open a terminal and follow along!
- Clone this repository:
git clone https://github.com/ajmalsiddiqui/dotfiles
- CD into the folder:
cd dotfiles
- Execute the bootstrap script:
sh ./bootstrap.exclude.sh
- Restart your terminal or run
source .bash_profile
You can customize these dotfiles using .local
files. These can be used to add custom commands or configure things that you don't want to commit to a public repo.
For example, to overwrite stuff in the .bash_profile
file, make a file called .bash_profile.local
and put your stuff in there.
When you make a new .local
file, you'll have to run sh ./bootstrap.exclude.sh
before it can be used. You only have to run the linking part though, so choose y
for that one part and n
for the rest.
First up, you should know that I am currently a happy Fedora user, and I've been using Linux for 4 years now (1 of which was with Debian). Before that, I used MacOS. So my dotfiles currently reflect what I use on my Fedora rig, along with some artifacts from my Mac days. I've taken some care to ensure that OS/distro specific parts are separated out if/when needed, but I make no guarantees.
The bootstrap script will (read: should) backup any existing dotfiles you have by adding the .bak
prefix to the relevant files, unless they're symlinks already.
Like everyone else who customizes their dotfiles, I have my own way of doing things. For example, all of my projects are in ~/Projects, and the project
function makes a new folder in this directory and cd's into it. This may or may not suit and hence you should start by changing the values of the variables defined in the various files to what suits your needs (the PATH_TO_PROJECTS variable keeps track of my projects directory).
I like to explore new languages, frameworks and technologies. Hence, I have a folder called playground on my Desktop where I experiment with stuff. The play
command makes a new folder in here and cd's into it (PATH_TO_PLAYGROUND is the corresponding variable). This is again something you should customize to suit your own needs (or remove entirely).
Shoutout to these amazing people and their dotfiles for inspiring my dotfiles in many ways.
- @pradyunsg - For introducing me to these magical entities
- @mathiasbynens - The go-to place for dotfiles inspiration