77 lines
1.5 KiB
Markdown
77 lines
1.5 KiB
Markdown
# Ayo's various configuration files
|
|
|
|
<img src="./tmux.png" width="600" />
|
|
|
|
## Setup
|
|
|
|
Clone the repo
|
|
|
|
```bash
|
|
git clone git@github.com:ayo-run/dotfiles
|
|
```
|
|
|
|
Then symlink to correct places. For example, the `.vimrc` usually goes to user home directory
|
|
|
|
```bash
|
|
cd dotfiles
|
|
ln -rsf ./.vimrc ~/
|
|
```
|
|
|
|
## For vim, vundle is used
|
|
|
|
1. install vundle
|
|
|
|
```bash
|
|
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
|
```
|
|
|
|
2. open `vim` then run `:PluginInstall`
|
|
|
|
[See more](https://github.com/VundleVim/Vundle.vim?tab=readme-ov-file#quick-start)
|
|
|
|
## For tmux, tpm is used
|
|
|
|
1. install tpm
|
|
|
|
```bash
|
|
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
|
```
|
|
|
|
2. open `tmux` then `[prefix] I`
|
|
|
|
## terminal fonts
|
|
|
|
1. Install `SFMono-Nerd-Font-Ligaturized`
|
|
|
|
```bash
|
|
git clone https://github.com/shaunsingh/SFMono-Nerd-Font-Ligaturized.git && cd SFMono-Nerd-Font-Ligaturized
|
|
cp *.otf ~/.local/share/fonts
|
|
```
|
|
|
|
2. use as terminal font via preferences
|
|
|
|
## install `gitmux` for git info on tmux bar
|
|
|
|
1. Download the latest [release](https://github.com/arl/gitmux/releases)
|
|
2. Extract to local shared and link
|
|
|
|
```bash
|
|
cd Downloads
|
|
tar -C ~/.local/share/ -xzf ./gitmux...tar.gz
|
|
|
|
# link binary
|
|
ln -s ~/.local/share/gitmux ~/.local/bin/gitmux
|
|
|
|
# confirm
|
|
gitmux -V
|
|
```
|
|
|
|
## display git info on terminal prompt
|
|
|
|
Add the following to your `.bashrc`
|
|
|
|
```bash
|
|
export GIT_PS1_DESCRIBE_STYLE="default"
|
|
source /etc/bash_completion.d/git-prompt
|
|
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[01;31m\]$(__git_ps1 " (%s)")\[\033[00m\]\$ '
|
|
```
|