Merge pull request 'fix: split dops/docker, fix header doc gaps from Job 3 findings' (#135) from fix/dops-docker-and-header-gaps into main
This commit was merged in pull request #135.
This commit is contained in:
@@ -11,6 +11,9 @@
|
|||||||
# Backwards-compatibility wrapper that delegates to fish-deps status to
|
# Backwards-compatibility wrapper that delegates to fish-deps status to
|
||||||
# report which fish shell dependencies are installed or missing.
|
# report which fish shell dependencies are installed or missing.
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of `fish-deps status`
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# check_fish_deps
|
# check_fish_deps
|
||||||
function check_fish_deps --description 'Check all fish-related dependencies'
|
function check_fish_deps --description 'Check all fish-related dependencies'
|
||||||
|
|||||||
@@ -12,6 +12,9 @@
|
|||||||
# README.md, ensuring all features and examples are accurate and pruning
|
# README.md, ensuring all features and examples are accurate and pruning
|
||||||
# obsolete content.
|
# obsolete content.
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of the `claude` invocation
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# claude-docs
|
# claude-docs
|
||||||
function claude-docs --description 'Claude-code: Sync README with recent changes'
|
function claude-docs --description 'Claude-code: Sync README with recent changes'
|
||||||
|
|||||||
@@ -12,6 +12,9 @@
|
|||||||
# branch, write a Conventional Commit, run verification, push, and open a
|
# branch, write a Conventional Commit, run verification, push, and open a
|
||||||
# pull request with a manual verification checklist.
|
# pull request with a manual verification checklist.
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of the `claude` invocation
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# claude-pr
|
# claude-pr
|
||||||
function claude-pr --description 'Claude-code: New branch, commit, push, and PR'
|
function claude-pr --description 'Claude-code: New branch, commit, push, and PR'
|
||||||
|
|||||||
@@ -11,6 +11,10 @@
|
|||||||
# Identifies and removes Arch Linux orphan packages using pacman. Logs
|
# Identifies and removes Arch Linux orphan packages using pacman. Logs
|
||||||
# package names and versions to ~/.removed_orphans before removal.
|
# package names and versions to ~/.removed_orphans before removal.
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# 0 No orphans found, or orphans removed successfully
|
||||||
|
# Nonzero `sudo pacman -Rns` failed
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# cleanup
|
# cleanup
|
||||||
function cleanup --description 'Log orphans to ~/.removed_orphans and remove them'
|
function cleanup --description 'Log orphans to ~/.removed_orphans and remove them'
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
# Copyright (C) 2026 Rootiest
|
||||||
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
|
# CATEGORY
|
||||||
|
# 12-ai-and-developer-tools
|
||||||
|
#
|
||||||
|
# DEPENDENCIES
|
||||||
|
# dops
|
||||||
|
#
|
||||||
|
# SYNOPSIS
|
||||||
|
# docker [subcommand] [args...]
|
||||||
|
#
|
||||||
|
# DESCRIPTION
|
||||||
|
# Wrapper for docker that intercepts the ps subcommand and redirects it to
|
||||||
|
# the dops function for enhanced container listing. All other subcommands,
|
||||||
|
# and a bare invocation with no subcommand, are passed through to the real
|
||||||
|
# docker binary.
|
||||||
|
#
|
||||||
|
# ARGUMENTS
|
||||||
|
# subcommand Docker subcommand (ps is redirected to dops)
|
||||||
|
# args... Arguments forwarded to docker or dops
|
||||||
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of dops (for ps), or of the real docker binary otherwise
|
||||||
|
#
|
||||||
|
# EXAMPLE
|
||||||
|
# docker ps
|
||||||
|
# docker
|
||||||
|
function docker --description 'Execute docker, redirecting ps to the enhanced dops listing'
|
||||||
|
if test -z "$argv[1]"
|
||||||
|
command docker
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
switch $argv[1]
|
||||||
|
case ps
|
||||||
|
dops $argv[2..-1]
|
||||||
|
case '*'
|
||||||
|
command docker $argv[1..-1]
|
||||||
|
end
|
||||||
|
end
|
||||||
+17
-16
@@ -4,27 +4,28 @@
|
|||||||
# CATEGORY
|
# CATEGORY
|
||||||
# 12-ai-and-developer-tools
|
# 12-ai-and-developer-tools
|
||||||
#
|
#
|
||||||
|
# DEPENDENCIES
|
||||||
|
# docker
|
||||||
|
#
|
||||||
# SYNOPSIS
|
# SYNOPSIS
|
||||||
# docker [subcommand] [args...]
|
# dops [args...]
|
||||||
#
|
#
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
# Wrapper for docker that intercepts the ps subcommand and redirects it to
|
# Enhanced container listing: runs docker ps with a clean custom table
|
||||||
# the dops function for enhanced container listing. All other subcommands are
|
# (Names, Image, Status, Ports) instead of docker's noisier default
|
||||||
# passed through to the real docker binary.
|
# columns. Extra arguments (e.g. -a) are forwarded to docker ps.
|
||||||
#
|
#
|
||||||
# ARGUMENTS
|
# ARGUMENTS
|
||||||
# subcommand Docker subcommand (ps is redirected to dops)
|
# args... Arguments forwarded to `docker ps`
|
||||||
# args... Arguments forwarded to docker or dops
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of `docker ps`
|
||||||
#
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# docker ps
|
# dops
|
||||||
function docker --description 'Execute docker'
|
# dops -a
|
||||||
if test -n "$argv[1]"
|
function dops --description 'Enhanced, formatted docker ps listing'
|
||||||
switch $argv[1]
|
__fish_help_header (status current-function) $argv; and return 0
|
||||||
case ps
|
|
||||||
dops $argv[2..-1]
|
command docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}' $argv
|
||||||
case '*'
|
|
||||||
command docker $argv[1..-1]
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -33,6 +33,9 @@
|
|||||||
# Displays a styled message indicating that the fast command is unavailable
|
# Displays a styled message indicating that the fast command is unavailable
|
||||||
# and suggests using fast-cli instead.
|
# and suggests using fast-cli instead.
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# 0 Always
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# fast
|
# fast
|
||||||
function fast --description 'Placeholder for future fast utility'
|
function fast --description 'Placeholder for future fast utility'
|
||||||
|
|||||||
@@ -11,6 +11,10 @@
|
|||||||
# Installs or upgrades fzf from git HEAD into ~/.fzf. Pulls the latest
|
# Installs or upgrades fzf from git HEAD into ~/.fzf. Pulls the latest
|
||||||
# changes if ~/.fzf already exists, or clones the repository if not.
|
# changes if ~/.fzf already exists, or clones the repository if not.
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# 0 fzf installed or updated successfully
|
||||||
|
# Nonzero git or the fzf install script failed
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# fzf-update
|
# fzf-update
|
||||||
function fzf-update --description 'Install or upgrade fzf from git HEAD'
|
function fzf-update --description 'Install or upgrade fzf from git HEAD'
|
||||||
|
|||||||
@@ -11,6 +11,9 @@
|
|||||||
# Fetches and prints both the public IPv4 and IPv6 addresses using
|
# Fetches and prints both the public IPv4 and IPv6 addresses using
|
||||||
# icanhazip.com. Shows "Not detected" for any address that times out.
|
# icanhazip.com. Shows "Not detected" for any address that times out.
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# 0 Always (network failures print "Not detected" instead of failing)
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# gip
|
# gip
|
||||||
function gip --description 'Show all public IP addresses'
|
function gip --description 'Show all public IP addresses'
|
||||||
|
|||||||
@@ -10,6 +10,9 @@
|
|||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
# Fetches and prints the machine's public IPv4 address using icanhazip.com.
|
# Fetches and prints the machine's public IPv4 address using icanhazip.com.
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of curl
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# gip4
|
# gip4
|
||||||
function gip4 --wraps='curl' --description 'Get public IPv4 address'
|
function gip4 --wraps='curl' --description 'Get public IPv4 address'
|
||||||
|
|||||||
@@ -14,6 +14,10 @@
|
|||||||
# Searches fish history interactively using fzf, inserts the selected command
|
# Searches fish history interactively using fzf, inserts the selected command
|
||||||
# into the command line, and copies it to the clipboard via wl-copy.
|
# into the command line, and copies it to the clipboard via wl-copy.
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# 0 Command selected and inserted, or fzf was cancelled
|
||||||
|
# 1 Disabled by __fish_config_op_integrations
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# hist
|
# hist
|
||||||
function hist --description 'Search fish history and put it in the prompt'
|
function hist --description 'Search fish history and put it in the prompt'
|
||||||
|
|||||||
@@ -14,6 +14,9 @@
|
|||||||
# ARGUMENTS
|
# ARGUMENTS
|
||||||
# args... Arguments forwarded to the listing command
|
# args... Arguments forwarded to the listing command
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of eza, lsd, or ls, whichever ran
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# lD ~/projects
|
# lD ~/projects
|
||||||
function lD --description 'List directories only'
|
function lD --description 'List directories only'
|
||||||
|
|||||||
@@ -13,6 +13,9 @@
|
|||||||
# files tracked by sbctl. Combines the edit and sign steps into a single
|
# files tracked by sbctl. Combines the edit and sign steps into a single
|
||||||
# command.
|
# command.
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# 0 Always (individual step failures are not propagated)
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# limine-edit
|
# limine-edit
|
||||||
function limine-edit --description 'Safely edit and re-verify Limine configuration'
|
function limine-edit --description 'Safely edit and re-verify Limine configuration'
|
||||||
|
|||||||
@@ -10,6 +10,9 @@
|
|||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
# Locks the current desktop session using loginctl lock-session.
|
# Locks the current desktop session using loginctl lock-session.
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of `loginctl lock-session`
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# lock
|
# lock
|
||||||
function lock --wraps='loginctl' --description 'alias lock=loginctl'
|
function lock --wraps='loginctl' --description 'alias lock=loginctl'
|
||||||
|
|||||||
@@ -14,6 +14,9 @@
|
|||||||
# ARGUMENTS
|
# ARGUMENTS
|
||||||
# args... Arguments forwarded to the listing command
|
# args... Arguments forwarded to the listing command
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of eza, lsd, or ls, whichever ran
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# lsr ~/projects
|
# lsr ~/projects
|
||||||
function lsr --description 'Reversed time-sorted listing'
|
function lsr --description 'Reversed time-sorted listing'
|
||||||
|
|||||||
@@ -14,6 +14,9 @@
|
|||||||
# ARGUMENTS
|
# ARGUMENTS
|
||||||
# args... Arguments forwarded to the listing command
|
# args... Arguments forwarded to the listing command
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of eza, lsd, or ls, whichever ran
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# lss ~/downloads
|
# lss ~/downloads
|
||||||
function lss --description 'Size-sorted listing'
|
function lss --description 'Size-sorted listing'
|
||||||
|
|||||||
@@ -14,6 +14,9 @@
|
|||||||
# ARGUMENTS
|
# ARGUMENTS
|
||||||
# args... Arguments forwarded to the listing command
|
# args... Arguments forwarded to the listing command
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of eza, lsd, or ls, whichever ran
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# lstree ~/projects/myapp
|
# lstree ~/projects/myapp
|
||||||
function lstree --description 'Full recursive tree listing'
|
function lstree --description 'Full recursive tree listing'
|
||||||
|
|||||||
@@ -14,6 +14,9 @@
|
|||||||
# ARGUMENTS
|
# ARGUMENTS
|
||||||
# args... Arguments forwarded to the listing command
|
# args... Arguments forwarded to the listing command
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of eza, lsd, or ls, whichever ran
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# lt ~/projects
|
# lt ~/projects
|
||||||
function lt --description 'Tree listing, depth 2'
|
function lt --description 'Tree listing, depth 2'
|
||||||
|
|||||||
@@ -15,6 +15,9 @@
|
|||||||
# ARGUMENTS
|
# ARGUMENTS
|
||||||
# args... Arguments forwarded to the listing command
|
# args... Arguments forwarded to the listing command
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of eza, lsd, or ls, whichever ran
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# ltr ~/projects
|
# ltr ~/projects
|
||||||
function ltr --description 'Reversed time-sorted listing'
|
function ltr --description 'Reversed time-sorted listing'
|
||||||
|
|||||||
@@ -14,6 +14,9 @@
|
|||||||
# ARGUMENTS
|
# ARGUMENTS
|
||||||
# args... Arguments forwarded to the listing command
|
# args... Arguments forwarded to the listing command
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of eza, lsd, or ls, whichever ran
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# lx ~/projects
|
# lx ~/projects
|
||||||
function lx --description 'Extension-sorted listing'
|
function lx --description 'Extension-sorted listing'
|
||||||
|
|||||||
@@ -11,6 +11,9 @@
|
|||||||
# Lists all active TCP listeners on the system using lsof, showing
|
# Lists all active TCP listeners on the system using lsof, showing
|
||||||
# port numbers and addresses without hostname resolution.
|
# port numbers and addresses without hostname resolution.
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of `lsof`
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# ports
|
# ports
|
||||||
function ports --wraps='sudo' --description 'Show active network listeners'
|
function ports --wraps='sudo' --description 'Show active network listeners'
|
||||||
|
|||||||
@@ -15,6 +15,9 @@
|
|||||||
# ARGUMENTS
|
# ARGUMENTS
|
||||||
# text... Text to encode; reads from stdin if omitted
|
# text... Text to encode; reads from stdin if omitted
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of qrencode, or curl if qrencode is unavailable
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# qr "https://example.com"
|
# qr "https://example.com"
|
||||||
# echo "hello" | qr
|
# echo "hello" | qr
|
||||||
|
|||||||
@@ -11,6 +11,9 @@
|
|||||||
# Turns off the display after a 1-second delay by invoking the KDE
|
# Turns off the display after a 1-second delay by invoking the KDE
|
||||||
# PowerDevil "Turn Off Screen" global shortcut via busctl.
|
# PowerDevil "Turn Off Screen" global shortcut via busctl.
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of `busctl`
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# screensleep
|
# screensleep
|
||||||
function screensleep --description 'Turn off the display using KDE PowerDevil'
|
function screensleep --description 'Turn off the display using KDE PowerDevil'
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# # Register with sponge (done automatically by conf.d/sponge_privacy.fish):
|
# # Register with sponge (done automatically by conf.d/sponge_privacy.fish):
|
||||||
# set -U -a sponge_filters sponge_filter_secrets
|
# set -U -a sponge_filters sponge_filter_secrets
|
||||||
|
|
||||||
function sponge_filter_secrets --argument-names command
|
function sponge_filter_secrets --argument-names command
|
||||||
# Find all exported variables with security-sensitive names
|
# Find all exported variables with security-sensitive names
|
||||||
set -l sensitive_vars (set --names --export | string match --regex -- \
|
set -l sensitive_vars (set --names --export | string match --regex -- \
|
||||||
|
|||||||
@@ -11,6 +11,9 @@
|
|||||||
# Launches Steam with systemd-inhibit to prevent the system from idling
|
# Launches Steam with systemd-inhibit to prevent the system from idling
|
||||||
# or sleeping during active downloads.
|
# or sleeping during active downloads.
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# Exit status of `steam` (via systemd-inhibit)
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# steam-dl
|
# steam-dl
|
||||||
function steam-dl --description 'Run Steam while inhibiting system sleep'
|
function steam-dl --description 'Run Steam while inhibiting system sleep'
|
||||||
|
|||||||
@@ -12,6 +12,9 @@
|
|||||||
# zRAM compression ratio, zRAM device details (via zramctl), and
|
# zRAM compression ratio, zRAM device details (via zramctl), and
|
||||||
# active swap priority (via swapon).
|
# active swap priority (via swapon).
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# 0 Always
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# swapstat
|
# swapstat
|
||||||
function swapstat --description 'View colorized zRAM and swappiness status'
|
function swapstat --description 'View colorized zRAM and swappiness status'
|
||||||
|
|||||||
@@ -11,6 +11,9 @@
|
|||||||
# Kills all detached (unattached) tmux sessions, leaving any currently
|
# Kills all detached (unattached) tmux sessions, leaving any currently
|
||||||
# attached sessions running.
|
# attached sessions running.
|
||||||
#
|
#
|
||||||
|
# EXIT STATUS
|
||||||
|
# 0 Always
|
||||||
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# tmux-clean
|
# tmux-clean
|
||||||
function tmux-clean --description 'Kill all tmux sessions except the current one'
|
function tmux-clean --description 'Kill all tmux sessions except the current one'
|
||||||
|
|||||||
Reference in New Issue
Block a user