Skip to content

Instantly share code, notes, and snippets.

@adujardin
Created September 17, 2021 13:54
Show Gist options
  • Save adujardin/616e9cdad4b9fe2ed6f974d7599c0c5c to your computer and use it in GitHub Desktop.
Save adujardin/616e9cdad4b9fe2ed6f974d7599c0c5c to your computer and use it in GitHub Desktop.
Random zsh / bash alias
alias make='make -j$(nproc)'
alias m='cmake ..; make -j$(nproc)'
alias c='mkdir -p build; cd build; cmake ..; make -j$(nproc)'
alias b='mkdir -p build; cd build; cmake .. -G Ninja; ninja'
alias magicmerge='git merge -s recursive -Xignore-space-at-eol'
alias gsa='git submodule add '
alias dock='docker run -it --privileged --gpus all -e NVIDIA_DRIVER_CAPABILITIES=all -v /:/host --network=host -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment