An open API service indexing awesome lists of open source software.

https://github.com/meshula/home


https://github.com/meshula/home

Last synced: 28 days ago
JSON representation

Awesome Lists containing this project

README

          

# home

## git configuration

```sh
git config --global core.autocrlf false
git config --global core.excludesFile "~/.gitignore_global"
```

### cargo
```sh
cargo install ripgrep
cargo install lsd
cargo install git-delta
```
### for clangd
in order that C++ completion works within nvim:
```sh
cmake . -DCMAKE_EXPORT_COMPILE_COMMANDS=1
```
## mac

Link dotfiles
```bash
mv ~/.zshrc ~/.zshrc/old
ln -s macos/zshrc_volatile ~/.zshrc
mkdir -p ~/.config/nvim
ln -s macos/config.nvim.lua ~/.config/nvim/lua
ln -s ~/config/nvim/lua/init.lua ~/.config/nvim/init.lua
ln -s macos/zls.json ~/Library/Application\ Support/zls.json
```

### conda

* install miniconda: [https://docs.conda.io/en/latest/miniconda.html](https://docs.conda.io/en/latest/miniconda.html)
* create an `sdev` conda env and do some basic setup:
```bash
conda create -n sdev
conda activate sdev
conda config --add channels conda-forge
conda install nvim tmux cmake git git-lfs tree htop python pip ipython ipdb \
ripgrep the_silver_searcher

# LSPs
conda install pyright dnachun::lua-language-server

# install tpm (tmux package manager)
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
```

#### git_config.sh
Run once. Adds git alias lol and lola which will print a concise change history

### start_ssh.sh
Launches an ssh agent, and adds a key named github

### zig for vim
```sh
mkdir -p ~/.vim/pack/plugins/start/
cd ~/.vim/pack/plugins/start/
git clone https://github.com/ziglang/zig.vim
```
build or install zls at
```sh
/Users/nporcino/bin/zls
```

### powerlevel10k
```sh
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
p10k configure
```

### theme.sh

## install theme.sh on mac

```sh
sudo curl -Lo ~/bin/theme.sh 'https://git.io/JM70M'
sudo chmod +x ~/bin/theme.sh
theme.sh --dark --list
theme.sh zenburn
```

## windows

### windows terminal

```sh
init.vim goes in ~/AppData/Local/nvim
ssh keys go in ~/.ssh
```

### windows install SSH server
```sh
Settings > Optional Features > Add a feature > OpenSSH Client
In an elevated powershell,
```

```sh
Set-Service -StartupType Manual ssh-agent
Start-SshAgent

edit git config --globel -e

and add
[core]
sshCommand = c:\WINDOWS\System32\OpenSSH\ssh.exe
```

### Plug for windows

in powershell:

```sh
iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
ni "$(@($env:XDG_DATA_HOME, $env:LOCALAPPDATA)[$null -eq $env:XDG_DATA_HOME])/nvim-data/site/autoload/plug.vim" -Force
```

### ccls windows

```sh
choco install ccls
```

### wsl

copy the dot files