Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/g1eny0ung/dotfiles
g1eny0ung's dotfiles.
https://github.com/g1eny0ung/dotfiles
dotfiles ideavim neovim prettier spacemacs zsh
Last synced: 28 days ago
JSON representation
g1eny0ung's dotfiles.
- Host: GitHub
- URL: https://github.com/g1eny0ung/dotfiles
- Owner: g1eny0ung
- License: mit
- Created: 2017-05-25T10:57:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-22T08:24:52.000Z (3 months ago)
- Last Synced: 2024-08-22T09:42:22.657Z (3 months ago)
- Topics: dotfiles, ideavim, neovim, prettier, spacemacs, zsh
- Language: Emacs Lisp
- Homepage:
- Size: 147 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotfiles
This repo includes my dotfiles. 😃
## TOC
- [zsh (oh-my-zsh)](#zsh-oh-my-zsh)
- [spacemacs](#spacemacs)
- [neovim](#neovim)
- [prettier](#prettier)
- [ideavim](#ideavim)## 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:
```shell
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
```shell
# 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
```shell
# 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
#### Plugins
- [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions)
### spacemacs
> Make sure you have already installed [spacemacs](http://spacemacs.org/).
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](https://github.com/junegunn/vim-plug).
Only basic configurations there. Just for editing some configuration-like files.
Summary:
- `Leader Key` == `,`
- `jk` == ``
- `@@` == `your email, need to customize`Plugins:
```txt
Plug 'morhetz/gruvbox'
Plug 'vim-airline/vim-airline'
Plug 'airblade/vim-gitgutter'
Plug 'elzr/vim-json'
Plug 'editorconfig/editorconfig-vim'
```### Prettier
[Prettier](https://prettier.io/) is an opinionated code formatter.
### ideavim
```vimrc
inoremap jk
vnoremap jkset clipboard^=unnamed
set relativenumberset surround
```## License
MIT © [g1eny0ung](https://github.com/g1eny0ung)