Make program integrations conditional on shell
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
_: {
|
||||
{shell, ...}: {
|
||||
programs.fzf = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
enableBashIntegration = true;
|
||||
enableFishIntegration =
|
||||
if shell == "fish"
|
||||
then true
|
||||
else false;
|
||||
enableBashIntegration =
|
||||
if shell == "bash"
|
||||
then true
|
||||
else false;
|
||||
defaultOptions = [
|
||||
"--margin=1"
|
||||
"--layout=reverse"
|
||||
|
||||
Reference in New Issue
Block a user