Skip to content

About

A generic set of tools and shared code

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

2,099 Commits

Folders and files

Repository files navigation

Applications

Personal dotfiles and configuration management for shell, vim, mutt, and other tools — deployable to any Unix-like system (Linux, macOS, BSD, Cygwin) and syncable to remote hosts over SSH.

Install

cd ~/
git clone https://github.com/kiskeyix/applications.git Applications
./Applications/scripts/update-host --local

update-host symlinks the configs into your home directory, e.g.:

~/.bashrc        -> Applications/share/shell/bashrc
~/.bash_profile  -> Applications/share/shell/bash_profile
~/.dir_colors    -> Applications/share/shell/dir_colors
~/.inputrc       -> Applications/share/shell/inputrc

Any pre-existing files are preserved with a .bak extension.

Check whether a machine still matches what --local would produce, without changing anything:

update-host --verify

Disabling a feature

Remove the corresponding symlink:

cd ~/
rm .vim   # don't use ~/Applications/share/vim
rm .mutt  # don't use ~/Applications/share/mutt

Local overrides

Make host-specific changes in a separate file rather than editing the shared configs directly:

touch ~/.bashrc-`hostname`
touch ~/.vimrc-`hostname`
touch ~/.muttrc-`hostname`
touch ~/.profile-`hostname`
touch ~/.alias.setup

# a special .path.setup :
cat > ~/.path.setup <<'EOF'
# _path_add [-a] DIR — add DIR once, only if it exists. Default prepends; -a
# appends so it can never shadow a system command.
_path_add() {
  local append=0
  [[ $1 == -a ]] && { append=1; shift; }
  [[ -d $1 ]] || return 0
  case ":$PATH:" in *":$1:"*) return 0 ;; esac
  if (( append )); then PATH="$PATH:$1"; else PATH="$1:$PATH"; fi
}

_path_add "/opt/homebrew/bin"
_path_add "/opt/homebrew/sbin"
_path_add "$HOME/Applications/scripts"

_path_add -a "/usr/local/bin"
EOF

These are sourced automatically by the corresponding main config file. Claude Code sessions also source ~/.path.setup before each Bash command (via share/agents-config/hooks/session-start.sh), since their shell otherwise keeps only the claude process's PATH.

Syncing to remote hosts

update-host --send-key server1 server2   # one-time: push your SSH pubkey to each host
update-host                              # updates every host in ~/.remote-hosts
update-host server1 server2 ... serverN  # or update just these hosts

--send-key copies your public key to each remote host's ~/.ssh/authorized_keys. update-host (no --local) builds a tarball of this repo, ships it to each host over SSH/SCP in parallel (with a live per-host progress bar), unpacks it under ~/Applications, and relinks configs there too.

Testing

bundle exec rake test

Contributing

  1. Fork the repository on GitHub
  2. Create a feature branch
  3. Make your changes
  4. Open a Pull Request

Created: 2007-06-07

About

A generic set of tools and shared code

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages