Skip to content

My configs: Bash, Git, Atom, Vim, Tmux, Alacritty, Node, Plymouth. Xubuntu, Fedora.

Notifications You must be signed in to change notification settings

VovanR/dotfiles

Repository files navigation

dotfiles

My configs: Bash, Git, Vim, Tmux, Alacritty, Node, Plymouth. Xubuntu/Fedora.

Table of Contents

Install

git clone https://github.com/VovanR/dotfiles.git ~/.config/dotfiles

Font

Download any TrueType font

Copy it to ~/.fonts/truetype/

$ tree ~/.fonts/truetype/
~/.fonts/truetype/
└── Hack
    ├── Hack-BoldItalic.ttf
    ├── Hack-Bold.ttf
    ├── Hack-Italic.ttf
    └── Hack-Regular.ttf

Xubuntu

sudo apt install fonts-ibm-plex fonts-hack

Fedora

sudo dnf install ibm-plex-mono-fonts jetbrains-mono-fonts

Bash

mkdir -p ~/.bash-completion
ln -sf ~/.config/dotfiles/bash_aliases.bash ~/.bash_aliases
ln -sf ~/.config/dotfiles/bash_functions.bash ~/.bash_functions
ln -sf ~/.config/dotfiles/bash_profile.bash ~/.bash_profile
ln -sf ~/.config/dotfiles/bash_prompt.bash ~/.bash_prompt
ln -sf ~/.config/dotfiles/inputrc ~/.inputrc
ln -sf ~/.config/dotfiles/tmux.conf ~/.tmux.conf
ln -sf ~/.config/dotfiles/Xresources ~/.Xresources
xrdb -merge ~/.Xresources
source ~/.bash_profile

Color scheme

Install Base16 Shell

git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell

Apply theme

base16_atelier-forest
base16_bespin

or

base16_bespin

Git

git config -f ~/.gitlocal user.name "Username"
git config -f ~/.gitlocal user.email "mail@gmail.com"
ln -sf ~/.config/dotfiles/gitconfig ~/.gitconfig
ln -sf ~/.config/dotfiles/gitignore_global ~/.gitignore_global

Vim

mkdir -p ~/.vim/{backups,swaps,undo}
ln -sf ~/.config/dotfiles/vimrc ~/.vim/vimrc
ln -sfn ~/.config/dotfiles/snippets ~/.vim/UltiSnips

Install Dein.vim.
Use Dein-installer.vim

wget https://raw.githubusercontent.com/Shougo/dein-installer.vim/master/installer.sh
less installer.sh
sh installer.sh

Install Plugins

vim

Compile vimproc

cd ~/.cache/dein/repos/github.com/Shougo/vimproc.vim && make

Install ack

ln -sf ~/.config/dotfiles/ackrc ~/.ackrc
ln -sf ~/.vim ~/.config/nvim
ln -sf ~/.config/nvim/vimrc ~/.config/nvim/init.vim

Check PYTHON QUICKSTART section to using Vim Python 2/3 plugins with Nvim

:checkhealth

Tmux

Install Tmuxinator

sudo gem install tmuxinator

Add completion

wget https://raw.githubusercontent.com/tmuxinator/tmuxinator/master/completion/tmuxinator.bash -P ~/.bash-completion/
ln -sf ~/.config/dotfiles/alacritty/alacritty.toml ~/.config/alacritty/alacritty.toml
cp ~/work/alacritty/extra/completions/alacritty.bash ~/.bash-completion/

Node.js

Add npm completion

npm completion > ~/.bash-completion/npm.bash

Change npm's default directory to another directory

mkdir -p ~/.npm-global/bin
npm config set prefix '~/.npm-global'

See: TypeError: Unable to watch path

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Defaults

npm set init-author-email mail@gmail.com
npm set init-author-name "User Name"
npm set init-author-url https://mysite.com/
npm set init-license MIT
npm set init-version 0.0.0
npm install -g diff-so-fancy pm2
pm2 completion > ~/.bash-completion/pm2.bash
git clone https://github.com/basherpm/basher.git ~/.basher
basher install vovanr/v-dummyimage
basher install vovanr/v-pomodoro-alert
basher install vovanr/git-delete-current-branch
basher install vovanr/clone-my-repo

Plymouth

Change background wallpaper

ls /usr/share/plymouth/themes/xubuntu-logo/wallpaper.png && ls /usr/share/xfce4/backdrops/Mountainous_View_by_Sven_Scheuermeier.jpg && sudo convert /usr/share/xfce4/backdrops/Mountainous_View_by_Sven_Scheuermeier.jpg /usr/share/plymouth/themes/xubuntu-logo/wallpaper.png

Fix Xubuntu keyboard auto repeat delay and repeat rate

crontab -e

Add

*/15 * * * * DISPLAY=:0 /usr/bin/xset r rate 300 30

Upgrade

cd ~/.config/dotfiles
git pull
vim
cd ~/.config/base16-shell
git pull
basher update
rustup update stable

Further customization

  • Add any Bash profile customizations to ~/.bashlocal
  • Add your git username/email/etc. to ~/.gitlocal
  • Just fork this repo and hack on.

Resources

About

My configs: Bash, Git, Atom, Vim, Tmux, Alacritty, Node, Plymouth. Xubuntu, Fedora.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published