mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-17 21:07:54 +08:00
pux: use zoxide; also install zellij
This commit is contained in:
parent
de443adbce
commit
6efd55d602
2 changed files with 11 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ self, inputs, config, ... }:
|
||||
{ self, ... }:
|
||||
{
|
||||
flake = {
|
||||
homeModules = {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue