All processes in ZSH/Bash under job control are in 3 states: foregrounded, backgrounded and suspended.
# run command in the foreground
command
# run commend in the background
| #!/usr/bin/env python | |
| # | |
| # author: github.com/jbenet | |
| # license: MIT | |
| # | |
| # tikz2svg: convert tikz input into svg | |
| # depends on: | |
| # - pdflatex: comes with your tex dist | |
| # - pdf2svg: brew install pdf2svg |
From Stack Overflow.
# Fetch the submodule commits into the main repository
git remote add submodule_origin git://url/to/submodule/origin
git fetch submodule_origin
# Start a fake merge (won't change any files, won't commit anything)
git merge -s ours --no-commit submodule_origin/master| #!/usr/bin/env bash | |
| # terminal application launcher for sway, using fzf | |
| # Based on: https://gitlab.com/FlyingWombat/my-scripts/blob/master/sway-launcher | |
| shopt -s nullglob | |
| if [[ "$1" == 'describe' ]]; then | |
| shift | |
| if [[ $2 == 'command' ]]; then | |
| title=$1 | |
| readarray arr < <(whatis -l "$1" 2>/dev/null) |