Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trs/dotfiles
Shared shell config
https://github.com/trs/dotfiles
Last synced: 23 days ago
JSON representation
Shared shell config
- Host: GitHub
- URL: https://github.com/trs/dotfiles
- Owner: trs
- Created: 2021-04-24T17:22:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-11T17:12:41.000Z (over 2 years ago)
- Last Synced: 2024-12-12T00:44:23.528Z (27 days ago)
- Language: Vim Script
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotfiles
## Prerequisits
### [`zsh`](https://zsh.sourceforge.io/)
```bash
sudo apt install zsh
```### [`starship`](https://starship.rs/guide/#%F0%9F%9A%80-installation)
```bash
curl -sS https://starship.rs/install.sh | sh
```### [`neovim`](https://github.com/neovim/neovim/wiki/Installing-Neovim)
```bash
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt-get update
sudo apt-get install neovim
```## Installation
```bash
# Settings
DF_PATH="$HOME/dotfiles"
DF_RC="$HOME/.zshrc"
DF_VIM="$HOME/.vimrc"# Clone repository.
git clone [email protected]:trs/dotfiles.git "$DF_PATH"# Source `.shellrc`.
echo '
export SHELLRC_DIR='"$DF_PATH"'
[ -f "$SHELLRC_DIR/.shellrc" ] && . "$SHELLRC_DIR/.shellrc"
' >> "$DF_RC"# Source `.vimrc`
echo '
:source $SHELLRC_DIR/.vimrc
' >> "$DF_VIM"# Include `git/gitconfig`.
DF_GITCONF="$HOME/.gitconfig"
[ ! -f "$DF_GITCONF" ] && touch "$DF_GITCONF"
echo '
[include]
path = '"$DF_PATH"'/git/gitconfig
' >> "$DF_GITCONF"
```## Aliases
Machine specific aliases can be added to a `~/.aliases` file.