Bash aliases and helper scripts
. <(curl -L https://j.mp/_rc) runsascoded/.rc
This downloads clone-and-source.sh
and runs it on this repo/branch, cloning into .rc/
, appending to .bashrc
(to source
.rc
in new sessions), and source
ing .rc
in the current session.
This branch (server) is default; all includes a few additional modules:
submodules() {
git ls-tree "$@" | grep commit | awk '{print $4}'
}
comm -3 <(submodules server) <(submodules all)
# hammerspoon
# osx
# ruby
This repo and its submodules are also mirrored on GitLab.
A few submodules require additional setup steps (but can be ignored if unused):
- java → jenv
- js → nvm
- parallel → GNU Parallel
- python: doesn't install Python, but provides
install_pyenv
andinstall_conda
helpers.
I typically set these global configs as well:
git config --global init.defaultBranch main # a.k.a. `gdbm`
git config --global clone.defaultRemoteName u # a.k.a. `gcdr u`
git config --global push.default current # a.k.a. `gpdc`
git config --global receive.denyCurrentBranch ignore # a.k.a. `gaps`
git config --global diff.noprefix true # a.k.a. `gdnpt`
(aliases defined in git-helpers)