CTRL+T | Fuzzy search for files |
CTRL+Z | Stop foreground program |
fg | Restore stopped program to foreground |
bg job_id | Resume stopped program in background |
jobs | Show running and stopped programs |
SHIFT+LEFT MOUSE BUTTON | Copy to primary clipboard |
CTRL+B, \ | Split window with new pane in current path on right |
CTRL+B, - | Split window with new pane in current path at bottom |
CTRL+B, / | New window in current path |
SUPER+SHIFT+ENTER | Open terminal window |
SUPER+SHIFT+C | Close window |
SUPER+P | Launch dmenu |
SUPER+SHIFT+Q | Quit DWM |
SUPER+L | Lock screen |
:set list | Show whitespace |
:syntax sync fromstart | Fix syntax highlighting |
g- | Go to older text state |
g+ | Go to newer text state |
CTRL+R, 0 | Put last yanked string into command line |
:g!/pattern/d | Delete lines not matching pattern |
:%!jq . | Prettify JSON |
y | Add to playlist |
E | Add to play queue |
x | Play |
c | Pause |
Extract gzipped tarball
tar xzvf target.tar.gz
Extract bzipped tarball
tar xjvf target.tar.bz2
Fetch JSON and pretty print
curl URL -s | json_reformat
Start JACK
jack_control start
Stop JACK
jack_control stop
Boot into text mode
systemctl enable multi-user.target
sudo systemctl set-default multi-user.target
List branches ordered by last change
git branch --sort=-committerdate
Log summary
git log --pretty=oneline --abbrev-commit
Update date on last commit
git commit --amend --no-edit --date "$(date)"
Dump structure
mysqldump --no-data -u user -p database >database-schema.sql
Run MySQL container
docker run -p 8033:3306 --name mysql-5-6 -e MYSQL_ROOT_PASSWORD=password -d mysql:5.6.44
Update restart policy
docker update --restart unless-stopped mysql-5.6
timedatectl set-ntp no
timedatectl set-time 2021-01-01
timedatectl set-time 09:00:00
t | Select file |
ys | Yank (copy) selected |
p | Put (paste) |
:cd! . | Change pane directory to match current |