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: marslo.jiao@gmail.com
  • 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

# 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

  • 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 git@github.com: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

About

life is short, make it easier

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •