mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix!: refactored homeModules
This commit is contained in:
parent
1c48edddf4
commit
e9f8ccd2b3
50 changed files with 14 additions and 41 deletions
15
nix/homeModules/common/fish/functions/,.fish
Normal file
15
nix/homeModules/common/fish/functions/,.fish
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
function ,
|
||||
set ps
|
||||
set os
|
||||
for p in $argv
|
||||
if not string match -q -- "--*" $p
|
||||
set -a ps "nixpkgs#$p"
|
||||
else
|
||||
set -a os "$p"
|
||||
end
|
||||
end
|
||||
|
||||
set cmd "SHELL=(which fish) IN_NIX_SHELL=\"impure\" nix shell $os $ps"
|
||||
echo "Executing `$cmd`..."
|
||||
eval $cmd
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue