Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove home-brew and clipper note #42

Merged
merged 1 commit into from
Jan 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions Brewfile

This file was deleted.

2 changes: 0 additions & 2 deletions Brewfile.headless

This file was deleted.

31 changes: 2 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,5 @@
# dotfiles
My config files for [NeoVim](https://neovim.io), [Fish](https://fishshell.com), [Starship](https://starship.rs),
[tmux](https://www.ocf.berkeley.edu/~ckuehl/tmux/), [git](https://git-scm.com),
[Kitty](https://sw.kovidgoyal.net/kitty/), and [Homebrew](https://brew.sh).
[tmux](https://www.ocf.berkeley.edu/~ckuehl/tmux/), [git](https://git-scm.com), and
[Kitty](https://sw.kovidgoyal.net/kitty/).

## GitHub Codespaces

A few features have been added to make this easier to use with [Codespaces](https://github.com/features/codespaces).

Mostly this all works out of the box, however here are some special notes about using a shared clipboard:

On my Mac I have installed [Clipper](https://github.com/wincent/clipper). The `clipper.json` file gets
linked to `~/.clipper.json`. I also added the following to my `~/.ssh/config`

```
Host codespaces
Hostname localhost
Port 2222
User codespace
RemoteForward /home/codespace/.clipper.sock /Users/david/.clipper.sock
StreamLocalBindUnlink yes
StrictHostKeyChecking no
UpdateHostKeys no
```

To connect to my codespace I use:

```
gh cs ssh --profile codespaces
```

You can always use `gh alias` to make this easier. 😉
15 changes: 0 additions & 15 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

function link_files() {
mkdir -p ~/.config
ln -s $(pwd)/Brewfile.headless ~/.Brewfile
ln -s $(pwd)/tmux.conf ~/.tmux.conf
rm ~/.gitconfig
ln -s $(pwd)/gitconfig ~/.gitconfig
Expand Down Expand Up @@ -54,15 +53,6 @@ function install_software() {
~/.cargo/bin/bat cache --build
}

function setup_generic() {
sudo apt-get install build-essential
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
rm -rf "/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core
brew install gcc fish neovim
}

function setup_software() {
/usr/bin/pip3 install neovim
echo "PIP install neovim complete" >> ~/install.log
Expand All @@ -80,11 +70,6 @@ function setup_software() {
echo '🔗 Linking files.' >> ~/install.log;
echo `date +"%Y-%m-%d %T"` >> ~/install.log;
link_files
if [ ! -d /home/linuxbrew ]; then
echo '🍺 Installing brew software' >> ~/install.log;
echo `date +"%Y-%m-%d %T"` >> ~/install.log;
setup_generic
fi
echo '💽 Installing software' >> ~/install.log;
echo `date +"%Y-%m-%d %T"` >> ~/install.log;
install_software
Expand Down