为者常成, 成难成之事; 行者常至, 至难至之地. 与君共勉之!
- 晏子春秋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: marslo.jiao@gmail.com
- Created: 2013-10-07 21:43:42
- LastChange: 2024-01-24 00:43:55
Tip
- click here for vim/vimrc.d details
dotfiles # → $HOME
├── .bashrc/.bash_profile # ← source .marslo/.marslorc (macos/linux) or .marslo/.marslorc.wsl (wsl)
├── .marsorc/.marslorc.wsl # main entry
├── .marslo
│ ├── bin/ # - all tools/bins/scripts
│ ├── .alias # • alias.d entry - to setup bash alias
│ ├── alias.d/
│ ├── .completion # • bash_completion.d entry - to setup bash completion
│ ├── bash_completion.d/
│ ├── .env # • env.d entry - to setup environment variables
│ ├── env.d/
│ ├── gitconfig.d/
│ ├── inputrc.d/
│ └── vimrc.d/
├── .vimrc # → vim entry
├── .config
│ ├── nvim # → nvim entry
│ └── ...
├── .inputrc # → include `.marslo/inputrc.d/*`
├── .gitconfig # → include `.marslo/gitconfig.d/*`
└── ... # → rc/profile/ignore/...$ bash install.sh# gh new
$ gh extension install marslo/gh-new
$ gh new --setup --force
# gh ops
$ gh extension install marslo/gh-ops
$ gh ops --setup --force# 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
Tip
check more in awesome shell | devenv setup
- add
sourceas blow in.bashrcor/etc/bashrc(RHEL/CentOS) or/etc/bash.bashrc(Ubuntu) or~/.bash_profile(OSX)[ -f "~/.marslo/.marslorc" ] && source "~/.marslo/.marslorc" # wsl if uname -r | command grep --color=never -q -i 'microsoft'; then [ -f "~/.marslo/.marslorc.wsl" ] && source "~/.marslo/.marslorc.wsl" fi
- copy the
.inputrcto$HOME$ cp .inputrc ~/.inputrc
Tip
- Tab: for copilot auto-completion
- Ctrl+j: for coc-snippets
- Ctrl+m: for lsp auto-completion
$ cp .marslo/.gitalias ~/.marslo
# included in .gitconfig
$ echo "[include]" >> ~/.gitconfig
$ echo " path = ~/.marslo/gitconfig.d/gitalias" >> ~/.gitconfig
# or
$ cat >> ~/.gitconfig << EOF
[include]
path = ~/.marslo/gitconfig.d/gitalias
EOF# ubuntu:
$ sudo apt install tig
# from source
$ git clone git@github.com:jonas/tig.git
$ make prefix=/usr/local/tig
$ sudo make prefix=/usr/local/tig install- config: copy
.tigrcto$HOMEfolder$ cp .tigrc ~










