pux: use zoxide; also install zellij

This commit is contained in:
Sridhar Ratnakumar 2023-04-07 11:07:48 -04:00
parent de443adbce
commit 6efd55d602
2 changed files with 11 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ self, inputs, config, ... }:
{ self, ... }:
{
flake = {
homeModules = {

View file

@ -1,4 +1,4 @@
{ pkgs, flake, ... }:
{ pkgs, ... }:
{
# Key packages required on nixos and macos
home.packages = with pkgs; [
@ -13,7 +13,11 @@
name = "pux";
runtimeInputs = [ pkgs.tmux ];
text = ''
tmux -S "$(pwd)".tmux attach
PRJ="''$(zoxide query -i)"
echo "Launching tmux for ''$PRJ"
set -x
cd "''$PRJ" && \
exec tmux -S "''$PRJ".tmux attach
'';
})
];
@ -25,6 +29,10 @@
fzf.enable = true;
jq.enable = true;
zellij = {
enable = true;
};
# Better terminal, with good rendering.
kitty = {
enable = true;