Skip to content

marslo/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛠 dotfiles for Vim/CMD enthusiast

为者常成, 成难成之事; 行者常至, 至难至之地. 与君共勉之!
- 晏子春秋

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


Life is short, make it easier!

version

  • Author: marslo
  • Email: [email protected]
  • Created: 2013-10-07 21:43:42
  • LastChange: 2024-01-24 00:43:55

table of content


ffunc.sh

LS_COLORS

LS_COLORS_ALL

setup

dotfiles

$ bash install.sh

fonts

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
  • more

tools

folder structure

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/...

bash

manual configure

~/.marslo/.marslorc

  • 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"

inputrc:

  • Copy the .inputrc to $HOME
    $ cp ./dotfils/.inputrc ~/.inputrc

hybird mode for inputrc

nvim

[!TIP|label:key shortcuts]

  • Tab: for copilot auto-completion
  • Ctrl+j: for coc-snippets
  • Ctrl+m: for lsp auto-completion

nvim

nvim

gitalias

$ 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

gitalias

tig

installation

# 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 ~

python IDLE

idle solarized dark

idle gruvbox