This repo contains my config files for the following programs. Feel free to use entire files or snippets from them for your own use.
The following are actively maintained.
- zsh (with Oh My Zsh integration)
- git
- composer
- iTerm2 (Only on Mac)
- Homebrew (Only on Mac)
- sqlite
- screen
- Editline (exitrc)
- Readline (inputrc)
- ack (ack-grep in Ubuntu)
The following are not actively maintained any more since I am not using these tools any more.
- vim/macvim (Replaced it with Ideavim PhpStorm extension)
- Ideavim (PhpStorm Vim plugin)
- bash (replaced it with zsh)
- ctags
- octave
Earlier I was using the above dotfiles on a Mac and a Ubuntu desktop. But these days I am mostly using it on a Mac and a Windows machine with WSL running ZSH shell.
The contents of this repo 8000 have been partly invented from scratch, partly inspired by open source projects, and partly refactored from snippets collected all over the internet. Many are attributed.
Download or clone the entire source code from github and then run the following command.
./setup-links.sh
This command will create symbolic references in the home directory. If the config files exists already, then they are not overwritten.
Make sure you replace my name with your name in the git/gitconfig
file.
This repo contains a custom iTerm2 profile inside the iterm2 folder that is tweaked to my taste. Feel free to use or tweak it based on your preference.
To use the custom iTerm2 profile included in this repository, follow these steps:
- Open iTerm2 and navigate to
Preferences
(or pressCmd + ,
). - Go to the
Profiles
tab and click on theOther Actions
dropdown at the bottom. - Select
Import JSON Profiles...
. - Browse to the
iterm2
folder in this repository and select the provided JSON profile file. - Once imported, you can select the profile with the name
custom
from the list and set it as default if desired.
This will apply the custom settings and appearance defined in the profile.
To install Oh My Zsh, visit the official installation guide and follow the instructions provided there.
To include custom Zsh configurations from this repository, set the ZSH_CUSTOM
variable in your ~/.zshrc
file to point to the custom Zsh folder in this repository. For example:
export ZSH_CUSTOM=/path/to/this/repo/zsh/custom
Replace /path/to/this/repo
with the actual path to this repository on your system.
After making this change, reload your shell or run source ~/.zshrc
to apply the new configuration.
Homebrew is a package manager for macOS that simplifies the installation of software. To install Homebrew, visit the official installation guide and follow the instructions provided there.
This repository includes a Brewfile
that lists the Homebrew packages I use. To install these packages as a bundle, run:
brew bundle --file path/to/this/repo/brew/Brewfile
Replace path/to/this/repo
with the actual path to this repository on your system.
This command will read the Brewfile
and install all the specified packages, casks, and taps.
If you want to update the installed packages later, you can run:
brew bundle --file path/to/this/repo/brew/Brewfile --force
If you manually install a new package using Homebrew and want to add it to the Brewfile
, you can update the file by running:
brew bundle dump --file path/to/this/repo/brew/Brewfile --force
This will regenerate the Brewfile
with all currently installed packages, ensuring your changes are captured.
This ensures your system stays in sync with the Brewfile
.
For more information about Homebrew and its features, visit the official documentation.
Contributions are always welcome in the form of pull requests with explanatory comments.
The source code and the config files are released under "THE BEER-WARE" license.
I would, however, consider it a great courtesy if you could email me and tell me about your project and how this code was used, just for my own continued personal gratification :)