feat(terminal): Change default tmux to fish shell
This commit is contained in:
@@ -5,7 +5,33 @@
|
|||||||
lib,
|
lib,
|
||||||
device,
|
device,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
hotedit = pkgs.writeShellApplication {
|
||||||
|
name = "hotedit";
|
||||||
|
# description = "Edit files from nix store by replacing them with a local copy";
|
||||||
|
text = ''
|
||||||
|
if [ "$#" -eq 0 ]; then
|
||||||
|
echo "No arguments provided."
|
||||||
|
exit 1
|
||||||
|
elif [ "$#" -gt 1 ]; then
|
||||||
|
echo "More than 1 argument provided."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [ -L "$1" ]; then
|
||||||
|
echo "The file is a symbolic link."
|
||||||
|
mv "$1" "$1.bak"
|
||||||
|
cp "$1.bak" "$1"
|
||||||
|
chmod +rw "$1"
|
||||||
|
else
|
||||||
|
echo "The file is not a symbolic link."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
exec $EDITOR "$1"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in {
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
inputs.nix-index-database.hmModules.nix-index
|
inputs.nix-index-database.hmModules.nix-index
|
||||||
@@ -65,6 +91,7 @@
|
|||||||
fzf
|
fzf
|
||||||
(nerdfonts.override {fonts = ["Hasklig"];})
|
(nerdfonts.override {fonts = ["Hasklig"];})
|
||||||
pfetch-rs
|
pfetch-rs
|
||||||
|
hotedit
|
||||||
]
|
]
|
||||||
++ lib.optionals device.isLinux [
|
++ lib.optionals device.isLinux [
|
||||||
(pkgs.wrapMpv
|
(pkgs.wrapMpv
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
background_opacity = "0.8";
|
background_opacity = "0.8";
|
||||||
background_color = "#FFFFFF";
|
background = "#000000";
|
||||||
shell = "${pkgs.fish}/bin/fish";
|
shell = "${pkgs.fish}/bin/fish";
|
||||||
};
|
};
|
||||||
shellIntegration.enableFishIntegration = true;
|
shellIntegration.enableFishIntegration = true;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
in {
|
in {
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shell = "${pkgs.nushellFull}/bin/nu";
|
shell = "${pkgs.fish}/bin/fish";
|
||||||
terminal = "tmux-256color";
|
terminal = "tmux-256color";
|
||||||
prefix = "C-q";
|
prefix = "C-q";
|
||||||
historyLimit = 100000;
|
historyLimit = 100000;
|
||||||
@@ -22,7 +22,7 @@ in {
|
|||||||
tmuxPlugins.fzf-tmux-url
|
tmuxPlugins.fzf-tmux-url
|
||||||
{
|
{
|
||||||
plugin = tmuxPlugins.tmux-super-fingers;
|
plugin = tmuxPlugins.tmux-super-fingers;
|
||||||
extraConfig = "set -g @super-fingers-key o";
|
extraConfig = "set -g @super-fingers-key i";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = tmuxPlugins.catppuccin;
|
plugin = tmuxPlugins.catppuccin;
|
||||||
|
|||||||
Reference in New Issue
Block a user