Define nix_installed function
Lists the packages installed by `nix-env`. Moving forward, it might be useful to run something like... `$ nix_installed >nix-env.txt` ...and commit that to this repository a la the brew.txt file that previously floated around this repo. For now, I'm unwilling to commit to that solution, because I'm hoping a better alternative exists. Perhaps this should be an alias. Still unsure why I write aliases sometimes and functions other times. It might be worth documenting as a principle that I can lean on.
This commit is contained in:
parent
aa7b96bacd
commit
94bbcaafd5
1 changed files with 5 additions and 0 deletions
|
@ -129,6 +129,11 @@ path() {
|
||||||
echo "$PATH" | tr : '\n'
|
echo "$PATH" | tr : '\n'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nix_installed() {
|
||||||
|
# Lists the packages installed with `nix-env`
|
||||||
|
nix-env -q
|
||||||
|
}
|
||||||
|
|
||||||
nix_store() {
|
nix_store() {
|
||||||
# Print the packages in /nix/store without the preceding hash
|
# Print the packages in /nix/store without the preceding hash
|
||||||
ls /nix/store | sed 's/[a-z0-9]*-//'
|
ls /nix/store | sed 's/[a-z0-9]*-//'
|
||||||
|
|
Loading…
Reference in a new issue