@magic/bash-alias
@magic/bash-alias
installs useful git, node, rust, and @magic aliases.
POLLUTES THE NAMESPACE OF YOUR BASH WITH ONE AND TWO LETTER COMMANDS.
fortunately, the rest of the linux ecosystem seems to be smart enough not to do that too often.
known name clashes:
- gs = ghostscript.
- ll, la, l: exist on some operating systems. should be no change in behaviour though.
install
npm i -g @magic/bash-aliasaliases
strings in [] are expected or optional cli arguments
directory listings
l -> ls -CF [...FILE_GLOB]la -> ls -A [...FILE_GLOB]ll -> ls -alF [...FILE_GLOB]git
ga -> git add [...FILE_GLOB]gaa -> git add --allgb -> git branchgbb -> git checkout -b [NAME]gc -> git commit -m [message string] [...FILE_GLOB]gca -> git commit --amendgd -> git -c color.ui=always diffgl -> git -c color.ui=always loggp -> git pushgps -> git push --set-upstream [REMOTE] [BRANCH]gr -> git remote -vgra -> git remote add [NAME] [URL]grr -> git remote remove [NAME]gs -> git -c color.status=always statusgt -> git tag -a [VERSION] -m [VERSION]node
nb -> npm run buildnd -> npm run devnf -> npm run formatni -> npm installnp -> npm run prodnr -> npm runns -> npm startnt -> npm testnu -> npm update@magic
m -> magic devmb -> magic buildmc -> magic cleanmd -> magic devmp -> magic prodms -> magic serverust
cb -> cargo buildcch -> cargo checkcf -> cargo fmt -vci -> cargo installcr -> cargo runct -> cargo testcw -> cargo watchcwr -> cargo watch -x rungit commit shortcuts
gcbump -> git commit -m 'version: bump' ./package.json ./package-lock.json"gcdeps -> git commit -m 'deps: update' ./package.json ./package-lock.json"gcdevdeps -> git commit -m 'devdeps: update ' ./package.json ./package-lock.json"gcdist -> git commit -m 'dist: update' ./dist"gcdocs -> git commit -m 'docs: update' ./docs"gclog -> git commit -m 'readme: update changelog' ./README.md"gcread -> git commit -m 'readme: update' ./README.md"
source
the source for this page is in the example directory and gets built and published to github using @magic/core