TyrfingMjolnir / dotfiles_old

Some of your dotfiles, mine, and ours; no warranty what so ever, it's all for inspirational use

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotfiles

Some of my dotfiles, and some of yours, no warranty, it's all for inspirational purposes

How to list the packages installed on your current system

pacman -Qqn > installed-repo-packages.lst

or list all packages that are not in base or base-devel and that are not a dependency

comm -23 <(pacman -Qqt | sort) <(pacman -Sqg base base-devel | sort) > installed-repo-packages.lst

or the shit you actually want

comm -23 <(pacman -Qqnet | sort) <(pacman -Sqg base base-devel | sort) > installed-repo-packages.lst

How to install those same pacakges on a different machine.

pacman -S - < installed-repo-packages.lst

How to do a boolean subtraction between lines of 2 files

Create a sorted list of the files you want to check ownership of:

$ find /etc /opt /usr | sort > all_files.txt

Create a sorted list of the files tracked by pacman (and remove the trailing slashes from directories):

$ pacman -Qlq | sed 's|/$||' | sort > owned_files.txt

Find lines in the first list that are not in the second:

$ comm -23 all_files.txt owned_files.txt

Syntax coloring for Swift in vim: https://github.com/ryanolsonx/vim-lsp-swift

About

Some of your dotfiles, mine, and ours; no warranty what so ever, it's all for inspirational use


Languages

Language:Vim Script 51.4%Language:Shell 39.3%Language:Roff 9.3%