This repository contains my personal dotfiles for macOS. With a few minor modifications, they can also be used on GNU/Linux.
- bash [Link]
- bash-completion@2 [Link]
- bat [Link]
- coreutils [Link]
- cowsay-ng (Optional) [Link]
- diffutils [Link]
- eless [Link]
- emacs [Link]
- fd [Link]
- ffmpeg [Link]
- font-symbols-only-nerd-font [Link]
- fortune-mod (Optional) [Link]
- fzf [Link]
- fzf-git [Link]
- grep [Link]
- iTerm2 [Link]
- imagemagick [Link]
- jq [Link]
- magit (via emacs) [Link]
- midnight-commander [Link]
- oh-my-bash [Link]
- poppler [Link]
- reattach-to-user-namespace [Link]
- ripgrep [Link]
- rtv [Link]
- ruby [Link]
- sevenzip [Link]
- tabby [Link]
- the_silver_searcher [Link]
- tmux [Link]
- tmux-mem-cpu-load [Link]
- tmuxinator [Link]
- tmuxinator-completion [Link]
- tree [Link]
- yazi [Link]
- yazi's nightfly theme [Link]
- yazi's moonfly theme Link]
- yazi's varoius themes [Link]
- yazi's everforest-medium theme [Link]
- zoxide [Link]
git clone --depth 1 https://github.com/daviderestivo/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
git submodule init
git submodule update
git submodule foreach --recursive git checkout master
Intall DejaVuSansMono fonts: https://dejavu-fonts.github.io/Download.html Intall DejaVuSansMonoPowerline fonts: https://github.com/powerline/fonts/tree/master/DejaVuSansMono
# Install cmake if not done before
brew install cmake
# Compile tmux-mem-cpu-load
cd ~/.dotfiles/tmux/plugins/tmux-mem-cpu-load
cmake .
make
Emacs is required in order to use magit from console.
brew tap daviderestivo/emacs-head
brew install emacs-head@31 --with-cocoa
brew install bash bash-completion@2 ruby tmux \
reattach-to-user-namespace midnight-commander \
the_silver_searcher tmuxinator-completion coreutils \
grep tree bat diffutils yazi ffmpeg sevenzip jq \
poppler fd ripgrep fzf zoxide imagemagick \
font-symbols-only-nerd-font
# Cowsay-ng (Optional)
brew tap daviderestivo/homebrew-cowsay-ng
brew install cowsay-ng
# Fortune-mod (Optional)
brew tap daviderestivo/fortune-mod
brew install fortune-mod --with-offensive --with-fortune-mod-it --with-fortune-mod-woody-allen-it
# Install terminals (you can choose between iTerm or tabby)
brew install --cask tabby iterm2@beta
# Install tmuxinator
gem install tmuxinator
# Move to your homedir
cd ~
# Create directories
mkdir -p ~/bin
mkdir -p ~/.config/bat
mkdir -p ~/.config/mc
mkdir -p ~/.config/rtv
# Backup your current dotfiles
cp ~/.bash_profile ~/.bash_profile.orig
cp ~/.bashrc ~/.bashrc.orig
cp ~/.tmux.conf ~/.tmux.conf.orig
cp ~/.config/mc/ini ~/.config/mc/ini.orig
cp ~/.config/rtv/rtv.cfg ~/.config/rtv/rtv.cfg.orig
cp ~/.config/bat/config ~/.config/bat/config.orig
cp ~/Library/Application\ Support/tabby/config.yaml ~/Library/Application\ Support/tabby/config.yaml.orig
# Use the ones provided by this repo
cd ~
ln -sf ~/.dotfiles/bash_profile .bash_profile
ln -sf ~/.dotfiles/bashrc .bashrc
ln -sf ~/.dotfiles/bat/config .config/bat/config
ln -sf ~/.dotfiles/tmux/tmux.conf .tmux.conf
ln -sf ~/.dotfiles/mc/mc.ext .config/mc/mc.ext
ln -sf ~/.dotfiles/mc/ini .config/mc/ini
ln -sf ~/.dotfiles/rtv/rtv.cfg .config/rtv/rtv.cfg
ln -sf ~/.dotfiles/eless/eless ~/bin/eless
ln -sf ~/.dotfiles/edit/edit ~/bin/edit
ln -sf ~/.dotfiles/tabby/config.yaml ~/Library/Application\ Support/tabby/config.yaml
ln -sf ~/.dotfiles/yazi ~/.config/yazi
Open iTerm2 settings and in the "General" section toggle "Load preferences from a custom folder or URL" and choose "~/.dotfiles/iterm2" as folder location.
If you wish to add additional .bashrc related configurations/aliases you can simply create a new .bash_personal:
touch ~/.bash_personal
and add them there.
-
Please comment out the below line in tmux.conf in case you run tmux in GNU/Linux:
set -g default-command "reattach-to-user-namespace -l ${SHELL}"
-
Please use the standard mc.ext that comes with Midnight Commander