Update fish

This commit is contained in:
albert 2024-04-29 12:18:41 +09:00
parent 4cf23db8a9
commit cfe8335e1e
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A
3 changed files with 12 additions and 9 deletions

View file

@ -2,6 +2,7 @@
imports = [
./atuin.nix
./bash.nix
./fish.nix
./btop.nix
./starship.nix
./git.nix

View file

@ -1,14 +1,16 @@
{ ... }: {
programs.kitty.shellIntegration.enableFishIntegration = true;
programs.starship.enableFishIntegration = true;
programs.fish = {
enable = true;
interactiveShellInit = ''
GPG_TTY=$(tty)
EDITOR=vim
set GPG_TTY $tty
set EDITOR vim
ssh-add > /dev/null &> /dev/null
if [ -z "$DISABLE_TMUX" ] && [ -z "$TMUX" ] ; then
if [ -z "$DISABLE_TMUX" ] && [ -z "$TMUX" ];
tmux attach || exec tmux new-session && exit
fi
end
'';
functions = {
update_secrets = ''
@ -18,10 +20,10 @@
'';
restart-docker = ''
pushd /Storage/Data/docker-compose/sysctl.io/
docker stop $1
docker rm $1
docker stop $argv
docker rm $argv
git pull
docker compose up -d $1
docker compose up -d $argv
popd
'';
# Build ISOs/SD Card Images
@ -137,7 +139,7 @@
dl = "docker logs -f ";
dps = ''docker ps --format "table [{{.ID}}] {{.Names}}\t{{.Status}}\t{{.State}}\t{{.Label \"type\"}}"'';
# bash / system
# fish / system
ls = "exa --icons -F --group-directories-first --git";
cp = "rsync -avr";
ll = "exa -lah --icons -F --group-directories-first --git";
@ -177,6 +179,5 @@
rebuild-home-remote = "git -C /etc/nixos/git pull && home-manager switch -b backup --flake /etc/nixos/git --max-jobs 0";
rebuild-all-remote = "rebuild-host-remote && rebuild-home-remote";
};
};
}

View file

@ -2,6 +2,7 @@
imports = [
# Common configs
./common/software/cli/bash.nix
./common/software/cli/fish.nix
./common/software/cli/git.nix
# ./common/software/cli/nixvim/base.nix
./common/software/cli/ssh.nix