为者常成, 成难成之事; 行者常至, 至难至之地. 与君共勉之!
- 晏子春秋Whoever will eventually shake the world will remain silent for a long time;
Whoever will eventually light the lightning will be drifting like clouds for a long time.
- Nietzsche
- Author: marslo
- Email: [email protected]
- Created: 2013-10-07 21:43:42
- LastChange: 2024-01-24 00:43:55
$ bash install.sh
TIPS:
# show fonts
$ fc-list | sed -re 's/^.+\/([^:]+):\s?([^,:]+),?:?.*$/\1 : \2/g' | column -t -s: -o: | sort -t':' -k2'
# show font properties
$ fc-query /path/to/font.ttf
## show font family only
$ fc-query -f '%{family}\n' /path/to/font.ttf
-
RecMonoCasual Nerd Font Mono
$ curl --create-dirs -O --output-dir "${fontsPath}" \ -fsSL --remote-name-all \ https://github.com/marslo/fonts/raw/fonts/Recursive/Recursive_Code_NF/RecMonoCasual/RecMonoCasualNerdFontMono-Regular.otf \ https://github.com/marslo/fonts/raw/fonts/Recursive/Recursive_Code_NF/RecMonoCasual/RecMonoCasualNerdFontMono-Italic.otf \ https://github.com/marslo/fonts/raw/fonts/Recursive/Recursive_Code_NF/RecMonoCasual/RecMonoCasualNerdFontMono-Bold.otf \ https://github.com/marslo/fonts/raw/fonts/Recursive/Recursive_Code_NF/RecMonoCasual/RecMonoCasualNerdFontMono-BoldItalic.otf
-
Monaco Nerd Font Mono
# otf $ curl --create-dirs -O --output-dir "${fontsPath}" -fsSL \ https://github.com/marslo/fonts/raw/fonts/Monaco/MonacoNerdFontMono-Regular.otf # ttf $ curl --create-dirs -O --output-dir "${fontsPath}" -fsSL \ https://github.com/marslo/fonts/raw/fonts/Monaco/MonacoNerdFontMono-Regular.otf
dotfils # -> $HOME
├── .config
│ ├── nvim # nvim/init.lua
│ └── ...
├── .marslo
│ ├── .alias # all alias
│ ├── bin # all bins/scripts
│ └── vimrc.d # all vimrc congiures
├── .vimrc # source vimrc.d/*
├── .marsorc # ╮ source all in `.marslo/{.alias,bin}`
├── .marsorc.wsl # ╯
├── .bashrc # source ~/.marslorc or ~/.marslorc.wsl
└── ... # rc/profile/ignore/...
- add
source
as blow in.bashrc
or/etc/bashrc
(RHEL/CentOS) or/etc/bash.bashrc
(Ubuntu) or~/.bash_profile
(OSX)[ -f "~/.marslo/.marslorc" ] && source "~/.marslo/.marslorc" # wsl [ -f "~/.marslo/.marslorc.wsl" ] && source "~/.marslo/.marslorc.wsl"
- Copy the
.inputrc
to$HOME
$ cp ./dotfils/.inputrc ~/.inputrc
[!TIP|label:key shortcuts]
- Tab: for copilot auto-completion
- Ctrl+j: for coc-snippets
- Ctrl+m: for lsp auto-completion
$ cp ./dotfils/.marslo/.gitalias ~/.marslo
# included in .gitconfig
$ echo "[include]" >> ~/.gitconfig
$ echo " path = ~/.marslo/.gitalias" >> ~/.gitconfig
# or
$ cat >> ~/.gitconfig << EOF
[include]
path = ~/.marslo/.gitalias
EOF
# ubuntu:
$ sudo apt install tig
# from source
$ git clone [email protected]:jonas/tig.git
$ make prefix=/usr/local/tig
$ sudo make prefix=/usr/local/tig install
- config: copy
.tigrc
to$HOME
folder$ cp ./dotfils/.tigrc ~