Skip to content

babymastodon/rc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rc

Personal dotfiles and setup scripts for a desktop environment that uses tmux for window management, Vim for code editing, and works well over SSH. Supports macOS and Linux.

Getting started

  1. Install/link the files in this repo:
./install.sh
  1. Reload your shell so the aliases/functions are available:
source ~/.bashrc

Ghostty

Get Ghostty here: https://ghostty.org (install on the laptop). It's a GPU-accelerated terminal that matches your OS light/dark theme. Kitty configs are also available.

After install, link the config from this repo:

cd ghostty
./install_ghostty.sh

Vim

Install coc.nvim tooling for Vim (autocompleter support for multiple languages):

cd vim
./install_coc.sh

Key shortcuts:

move: hjkl
move a lot: Shift-hjkl
new tab: Ctrl-t
close tab: :q
open current directory: Ctrl-d
go to definition: gd
undo go to definition: Ctrl-o
save: :w
copy: \\c

If you want plugins, open Vim and run:

:PlugInstall

tmux sessions

The install script sets up these aliases to start or resume a tmux session:

# init a new session named "moo"
newmoo

# resume the session
moo

Key shortcuts:

move between windows: Shift-Left/Right
new window: Ctrl-b c
close window: Ctrl-d

Git shortcuts

The install script sets up these aliases:

g='git'
ga='git add .'
st='git status && git diff --stat'
gd='git diff'
gs='git -c color.status=always status -s && ...'
cm='git-commit-all'
pl='git pull'
ph='git push --force-with-lease'
mg='git fetch && git merge origin/master --no-edit'
br='git log --graph --oneline --decorate --all'

Keyboard remaps

Recommended to reduce wrist strain: map Right Cmd/Alt to Control, and Caps Lock to Escape.

Linux (keyd):

cd keyd
./install_keyd.sh

macOS (Karabiner-Elements): https://karabiner-elements.pqrs.org

Codex

Install the Codex CLI:

npm i -g @openai/codex

Log in with ChatGPT. If the login prompt opens in a browser on the VM, SSH tunnel the port to your laptop:

ssh -L 1455:localhost:1455 you@your-vm

Then open the localhost URL that the login prompt prints in your laptop browser.

About

bashrc, vimrc, etc...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published