/dotfiles

g1eny0ung's dotfiles.

Primary LanguageEmacs LispMIT LicenseMIT

dotfiles

My dotfiles 😆 🙈, include:

Keeping updated.

How to use

No auto-link shell script here because I think you won't use all features of my specified.

Go through the files you want.

zsh (oh-my-zsh)

Summary:

  • PATH

    # Sqlite3 latest version
    export PATH=$(brew --prefix)/opt/sqlite/bin:$PATH
    # Ruby default
    export PATH=$(brew --prefix)/opt/ruby/bin:$PATH
    export PATH=$(gem env gemdir)/bin:$PATH
    # JDK
    export PATH=$(brew --prefix)/opt/openjdk/bin:$PATH
    # For pub
    export PATH=$HOME/.pub-cache/bin:$PATH
  • Aliases

    # neovim
    alias vi="nvim"
    alias vim="nvim"
    # proxy
    alias clashxproxy="export http_proxy=http://127.0.0.1:7890; export https_proxy=http://127.0.0.1:7890; export no_proxy=127.0.0.1,localhost"
    alias disproxy="unset http_proxy https_proxy no_proxy"
    # homebrew
    alias brew_UG="brew update && brew upgrade && brew upgrade --cask --greedy"
    # simple http server
    alias py_HTTP_Server="python3 -m http.server --bind 127.0.0.1"
    alias php_HTTP_Server="php -S 0.0.0.0:8000"
    # zsh
    alias source_zshrc="source ~/.zshrc"
    # git
    alias git="LANG=\"en_US.UTF-8\" git"
    # docker
    alias dkr="docker"
    alias dkrc="docker-compose"
    # kubectl
    alias k="kubectl"
    # flutter
    alias flutter="~/flutter/bin/flutter"
    # pnpm
    alias pn="pnpm"
  • Theme

    https://github.com/romkatv/powerlevel10k

  • Plugins

spacemacs

Make sure you have already installed spacemacs.

Summary:

  • All used layers placed in dotspacemacs-configuration-layers. Use SPC s s to find them.
  • All custom configurations placed in dotspacemacs/user-init and dotspacemacs/user-config. Use SPC s s to find them.
  • Custom layers (in .spacemacs.d/layers)

neovim

Make sure you have already installed vim-plug.

Only basic configurations there. Just for editing some configuration-like files.

Summary:

  • Leader Key == ,
  • jk == <Esc>
  • @@ == your email, need to customize

Plugins:

Plug 'morhetz/gruvbox'
Plug 'vim-airline/vim-airline'
Plug 'airblade/vim-gitgutter'
Plug 'elzr/vim-json'
Plug 'editorconfig/editorconfig-vim'

Prettier

Prettier is an opinionated code formatter.

ideavim

inoremap jk <Esc>
vnoremap jk <Esc>

set clipboard^=unnamed
set relativenumber

set surround

License

MIT © g1eny0ung