Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zoubin/etc
各种配置
https://github.com/zoubin/etc
Last synced: 8 days ago
JSON representation
各种配置
- Host: GitHub
- URL: https://github.com/zoubin/etc
- Owner: zoubin
- Created: 2014-11-12T02:45:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-30T11:47:01.000Z (11 months ago)
- Last Synced: 2024-04-09T16:29:04.431Z (7 months ago)
- Language: Vim Script
- Size: 203 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# etc
To manage configure files.
Suppose this repo is cloned to `$HOME/etc`.
## TOC
- [bash](#bash)
- [screen](#screen)
- [git](#git)
- [vim](#vim)
- [vimrc](#vimrc)
- [filetype](#filetype)
- [colorscheme](#colorscheme)## bash
In `$HOME/.bashrc`
```sh
source $HOME/etc/bashrc```
In `$HOME/.bash_profile`
```sh
source $HOME/etc/bash_profile```
## screen
In `$HOME/.screenrc`:
```sh
source $HOME/etc/screenrc
```## git
In `$HOME/.gitconfig`, set the `[include]` field:
```
[include]
path = etc/gitconfig
```## vim
### vimrc
In `$HOME/.vimrc`:```sh
source $HOME/etc/vimrc
```### filetype
```sh
ln -s $HOME/etc/vim/filetype.vim $HOME/.vim/filetype.vim
```Right now, files with extension `.es6` are recognized as type `javascript`.
### colorscheme
Here is an example to use different colorschemes in multiple iterm2 windows:
In `vimrc` we already have:
```vim
set background=dark
if $VIMCOLORSCHEME != ''
colorscheme $VIMCOLORSCHEME
endif
```To use `solarized` by default, put the following line into `$HOME/.bashrc`:
```sh
export VIMCOLORSCHEME=solarized
```If we want to use `default` for the HotKey Window,
open the HotKey Window profile general setting panel,
`Preferences->Profiles->Hotkey Window->General`
select `Login shell` in `Command` field,
and put the following text into the `Send text at start` input:```sh
export VIMCOLORSCHEME=default
```