This repo holds my .bashrc (and eventually my .vimrc whenever I get around to learning vim). It also has some handy features like adding aliases, using a .env file at ~/.env, and installing programs.
cd # go to home directory, as files should be stored in stored in ~/arc
git clone https://github.com/kahnpoint/arc
source ~/arc/.bashrc
You can now copy ~/arc/.bashrc to ~/.bashrc with arccp
if you want to use it permanently (see Arc Utilities for other commands)
Arc mostly has shorthand aliases for programs (like tf=terraform), but there are a few other frequently-used aliases and functions:
- ali = add an alias to both arc/.bashrc and .bashrc (with an optional comment) and alphabetize all the aliases
- usage:
ali 'c' 'clear' 'clear the terminal'
- usage:
- cpf = copy file contents to clipboard (WSL only)
- usage:
cpf ~/.bashrc
- usage:
- cpc = copy command output to clipboard (WSL only)
- usage:
cpc ls
- usage:
- mkcd = make a directory and cd into it
- usage:
mkcd ~/newdir
- usage:
- grist = grep history (history | grep)
- usage:
grist cd
- usage:
- bsrc = source .bashrc (source ~/.bashrc)
- .. = go down a directory (cd ..), can also do from ... to .....
- , = return to previous directory (cd -)
- (see 'MY SYNCED ALIASES' in .bashrc for more)
These are commands for working with Arc, and may get turned into a more formal cli tool sometime in the future.
- arc = edit /arc/.bashrc in nano and update .bashrc
- arccp = copy /arc/.bashrc to ~/.bashrc
- arcpc = copy ~/.bashrc to /arc/.bashrc
- arcup = upload /arc/.bashrc to github
- arcdn = download /arc/.bashrc from github
- arcin = install programs that have non-standard install methods (more will be added later, these are just some examples)
- bun
- python3.12
- thefuck
- includes WSL modifications
- uses alias 'f' for workspace-friendliness