Files
role-common-packages/defaults/main.yml

103 lines
2.6 KiB
YAML

# SPDX-License-Identifier: MIT
packages_linux_common_all_families:
- 'bc'
- 'btop'
- 'dosfstools'
- 'dhcping'
- 'fping'
- 'git'
- 'iperf3'
- 'jq'
- 'lnav'
- 'lsof'
- 'mbuffer'
- 'mtr'
- 'ncdu'
- 'netperf'
- 'parallel'
- 'parted'
- 'patch'
- 'pigz'
- 'pv'
- 'rsync'
- 'stress-ng'
- 'swaks'
- 'tcpdump'
- 'tmux'
- 'traceroute'
- 'tree'
- 'unzip'
- 'wget'
packages_linux_common_archlinux:
- 'bind'
- 'difftastic'
- 'eza'
- 'go-yq'
- 'gptfdisk'
- 'openbsd-netcat'
- 'qemu-guest-agent'
- 'uv'
packages_linux_paru_archlinux:
- 'downgrade'
- 'flent'
- 'mmv'
- 'paccache-hook'
- 'tmux-resurrect'
packages_linux_common_debian:
- 'apt-file'
- 'bind9-dnsutils'
- 'debconf-utils'
- 'exa'
- 'flent'
- 'gdisk'
- 'mmv'
- 'netcat-openbsd'
- 'unattended-upgrades'
- 'xxd'
package_config:
- name: 'tmux'
global_config_file: '/etc/tmux.conf'
marker: 'sane defaults'
global_config: |
# Renumber windows when one is deleted
set-option -g renumber-windows on
# Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on
- name: 'git'
global_config_file: '/etc/gitconfig'
marker: 'sane defaults'
global_config: |
[alias]
# https://stackoverflow.com/a/30998048
# Find merge that contains a given commit
find-merge = "!sh -c 'commit=$0 && branch=${1:-HEAD} && (git rev-list $commit..$branch --ancestry-path | cat -n; git rev-list $commit..$branch --first-parent | cat -n) | sort -k2 -s | uniq -f1 -d | sort -n | tail -1 | cut -f2'"
# https://stackoverflow.com/a/30998048
# Show merge commit msg and other details of merge commit
# that contains a given commit
show-merge = "!sh -c 'merge=$(git find-merge $0 $1) && [ -n \"$merge\" ] && git show $merge'"
# https://stackoverflow.com/a/23508223
# Show all commits that are part of a merge commit
log-merge = "!f() { git log --stat \"$1^..$1\"; }; f"
tmux_global_config_file: '/etc/tmux.conf'
tmux_global_config_resurrect: |
# Auto-load tmux-resurrect
# prefix + Ctrl-s - save
# prefix + Ctrl-r - restore
run-shell /usr/share/tmux-resurrect/resurrect.tmux
# Restore pane content (not just running commands)
# This will e.g. show the last 'ls' output you did in a pane
set -g @resurrect-capture-pane-contents 'on'
# Restore a few additional processes beyond the conservative default of
# vi vim nvim emacs man less more tail top htop irssi weechat mutt
set -g @resurrect-processes 'btop journalctl ncdu watch'