https://github.com/irfansharif/dotfiles
@irfansharif's configs
https://github.com/irfansharif/dotfiles
ctags dotfiles fish tmux vim
Last synced: about 2 months ago
JSON representation
@irfansharif's configs
- Host: GitHub
- URL: https://github.com/irfansharif/dotfiles
- Owner: irfansharif
- Created: 2016-02-20T11:13:51.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-23T14:58:06.000Z (over 2 years ago)
- Last Synced: 2023-10-24T14:48:35.116Z (over 2 years ago)
- Topics: ctags, dotfiles, fish, tmux, vim
- Language: Vim Script
- Homepage:
- Size: 197 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @irfansharif's dotfiles
A documented history of needlessly meddling about configuration files
hoping to save time lost via meddling about configuration files.
## Setup
Copy and run the following script to set up these dotfiles on a new macOS machine:
```sh
#!/usr/bin/env bash
# Install Homebrew if not present.
if ! command -v brew &> /dev/null; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
# Install required packages.
brew install tmux fish neovim fd fzf autojump tree htop ripgrep golang gh coreutils graphviz cloc wget git
# Install Python dependencies (used by tmux/stmux.py).
pip3 install prompt_toolkit
# Install Oh My Fish.
if ! command -v omf &> /dev/null; then
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
fi
# Install theme.
omf install robbyrussell
# Clone dotfiles repo.
SRCTREE=${SRCTREE:-~/Software/src/github.com/irfansharif/dotfiles}
if [ ! -d "$SRCTREE" ]; then
mkdir -p ~/Software/src/github.com/irfansharif
git clone git@github.com:irfansharif/dotfiles.git $SRCTREE
fi
# Create symlinks.
ln -sf ${SRCTREE}/tmux/tmux.conf ~/.tmux.conf
ln -sf ${SRCTREE}/git/gitconfig ~/.gitconfig
mkdir -p ~/.git-template
ln -sf ${SRCTREE}/git/gitignore-global ~/.gitignore-global
ln -sf ${SRCTREE}/idea/ideavimrc ~/.ideavimrc
mkdir -p ~/.config
ln -sf ${SRCTREE}/nvim ~/.config/nvim
ln -sf ${SRCTREE}/ghostty ~/.config/ghostty
ln -sf ${SRCTREE}/fish ~/.config/fish
ln -sf ${SRCTREE}/bat ~/.config/bat
touch ~/.config/fish/custom.fish
# Install nvim plugins.
nvim --headless +PlugInstall +qall
echo "Setup complete!"
```
### Optional
- Install Powerline fonts for better terminal appearance (if needed):
```sh
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
cd ..
rm -rf fonts
```