Skip to content

g1eny0ung/dotfiles

Repository files navigation

dotfiles

This repo includes my dotfiles. 😃

TOC

How to use

I have not created any automated scripts to simplify the installation of these dotfiles.

Usually you just need to create soft links to them. For example:

sudo ln -s /path/to/dotfiles/.zshrc ~/.zshrc

zsh (oh-my-zsh)

For Warp users, you can use .warp.zshrc, which removes the custom theme and plugins because Warp has already provided them.

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 home)/bin:$PATH
# JDK
export PATH=$(brew --prefix)/opt/openjdk/bin:$PATH
# Pub
export PATH=$HOME/.pub-cache/bin:$PATH
# Add home/bin
export PATH=$HOME/bin:$PATH

Aliases

# neovim
alias vi="nvim"
alias vim="nvim"
# proxy
alias clashxproxy="export http_proxy=http://127.0.0.1:7890 https_proxy=http://127.0.0.1:7890 no_proxy=127.0.0.1,localhost,::1"
alias unproxy="unset http_proxy https_proxy no_proxy"
# homebrew
alias brew_UG="brew update && brew upgrade"
# simple http server
alias py_HTTP_Server="python3 -m http.server --bind 127.0.0.1" # local
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"
alias git_delete_gone_branches="git branch -vv | grep ': gone]' | awk '{ print \$1; }' | xargs git branch -D"
# docker
alias dkr="docker"
alias dkrc="docker-compose"
alias dkri="docker images"
# kubectl
alias k="kubectl"
alias kpoa="k get po -A --sort-by=.metadata.namespace"
alias kpo="k get po"
# flutter
alias flutter="~/flutter/bin/flutter"
# pnpm
alias pn="pnpm"
# minikube
alias mk="minikube"

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

About

g1eny0ung's dotfiles.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published