Navigation principles are shared between Gnome, Tmux and Nvim. The only difference is the *"Leader"* key. Gnome uses *Super* key, Tmux uses *Meta (alt)* key and Nvim uses *Space*. The rest somewhat repeats itself.
`emulator`|Start android emulator. Not portable, it has to be named "default".
## Archive.
Those are self-written scripts to create archives. They are basically compressed tar archives with SHA1 hashes in their names. They are exported so also available in `parallel` like this: `ls | parallel -j 8 -- archive {}`
Command|Description
---|---
`archive [DIRS]`|Create archive with the best compression (slow). If no args given, archives all files in current directory as separate archives.
`archive_fast [DIRS]`|Like normal `archive` but with minimal compression.
`archive_check [DIRS]`|Check specified archives or all archives in current directory.
`unarchive [DIRS]`|Check specified or all archives and extract if they are correct.
`paste > file.txt`|Paste system clipboard to a file (or pipe).
## File copy (cp).
Command|Description
---|---
`cp [FROM] [TO]`|Copy files or dirs. Actually, it is an alias for `rsync -ahP`.
`cp_merge [FROM] [TO]`|Mirror directories. Same as `rsync --delete`.
`cp_link`|Copy directory by recursively creating hardlinks and directories.
`bcp`|Default `cp` command.
## Date.
Command|Description
---|---
`today`|Return today's date in `YYYYmmdd` format.
`dow`|Return today's day of week, where 1 is Monday.
## Dconf (gnome settings).
Command|Description
---|---
`dconf_load`|Load custom settings.
`dconf_save`|Export all current setting in a file to inspect.
## Disk.
Command|Description
---|---
`df`|Show free disk space (only physical media).
`du [DIR]`|Show disk usage.
## Docker.
Command|Description
---|---
`docker_volumes [CONTAINER]`|Show volumes of a specified container.
`docker_health`|Show containers that exited with an error code.
`docker_prune`|Heavy cleanup to free up space.
`docker_ip [CONTAINER]`|Show IP of a specified container.
`docker_update`|Update all Docker images.
`dc`|Short for `docker compose`.
`dcu [SERVICE]`|Start a compose service.
`dcd [SERVICE]`|Remove a compose service.
`dcp [SERVICE]`|Pull image for a compose service.
`dcl [SERVICE]`|Show logs for a compose service.
`dcr [SERVICE]`|Restart a compose service.
`dcs [SERVICE]`|Stop a compose service.
`dcdu [SERVICE]`|Recreate a compose service.
`dcpu [SERVICE]`|Update and recreate a compose service.
`dcul [SERVICE]`|Start a compose service and show its logs.
## Environment variables.
Variable|Description
---|---
`PATH`|Defines where to find binaries. Modified to also include `$HOME/app/bin/` recursively.
`LANGUAGE`|Specifies `UTF-8` as default.
`EDITOR`|Specifies nvim as a default editor.
`MANPAGER`|Specifies nvim as a default `man` viewer.
`JAVA_HOME`|Specifies where JDK is stored.
`ANDROID_SDK_ROOT`|Specifies where Android SDK is stored.
`TEXMFVAR`, `TEXMFCONFIG`, `TEXMFLOCAL`|Specifies paths for TeXLive user directories.
## Ffmpeg.
Command|Description
---|---
`ffmpeg_mux_audio [SOUND] [RESULT]`|Mux external audio into one container with video (replaces original audio). Run inside dir with original video. [SOUND] names should be the same for each video.
## Files.
Command|Description
---|---
`o [FILE]`|Open file with default GUI app.
## Fix.
Contains simple fixes for warious issues.
Command|Description
---|---
`fix_ethernet_speed [SPEED]`|Specify ethernet speed if it failed to set correct speed automatically. [SPEED] can be 10/100/1000 etc.
`fix_files_sftp`|Make Nautilus forget incorrect password for SFTP connection.
## Git.
Command|Description
---|---
`git_tag`|Print git tag.
`gps`|Git push.
`gpsf`|Git push --force.
`gpl`|Git pull.
`gl`|Git log.
`gs`|Git status.
`gst`|Git stash.
`gd`|Git diff.
`gc [MESSAGE]`|Git commit.
`gch`|Git checkout.
`gb`|Git branch.
`gf`|Git fetch --all.
`gt`|Git tag.
`gi`|Delete files updated in git ignore.
`gpc`|Git patch create.
`gp`|Git patch (apply).
`ga`|Git add with preview.
`gr [COUNT]`|Git rebase. 2 last commits by default. 0 means from root.
`gu [NAME] [EMAIL]`|Configure git user (project).
`guv`, `guf`|My own user combos for personal and work.
## Ls.
Command|Description
---|---
`l`|List files in current dir.
`ll`|List including hidden files.
`lll [DEPTH] [PATH]`|Show file tree.
`llll`|List everything recursively.
`la`|List alphabetically.
`laa`|List all alphabetically.
## Name.
Those are scripts to manipulate file names. They are all exported and available for `parallel`. If no [FILES] specified, it applies to all files inside current directory.
Command|Description
---|---
`name [FILES]`|Replace all non-alphanumeric characters in file with underscores.
`name_hash [FILES]`|Replace all file names with hashes, keep extension.
`name_hash_check [FILES]`|Check all file hashes.
`name_series [SEASON]`|Rename files to Jellyfin's show format: `Episode S01E01.mkv`.
`name_manga [SEASON]`|Rename files to Kavita's manga format: `Name Vol.1 Ch.01.cbr`.