Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pull out lazygit window snippet to a separate package
- Loading branch information
1 parent
38db05c
commit 1dcff90
Showing
6 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ checkout_branch() { | |
} | ||
|
||
alias co=checkout_branch | ||
|
||
alias g=lazygit-window |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ sources ? import ../../nix/sources.nix, nixpkgs ? import sources.nixpkgs { } | ||
}: | ||
with nixpkgs; | ||
stdenv.mkDerivation { | ||
name = "lazygit-window"; | ||
src = ./.; | ||
buildInputs = [ pkgs.makeWrapper ]; | ||
|
||
installPhase = '' | ||
mkdir -p $out/bin | ||
cp ./lazygit-window.sh $out/bin/lazygit-window | ||
wrapProgram $out/bin/lazygit-window --prefix PATH : ${ | ||
pkgs.lib.makeBinPath [ tmux lazygit ] | ||
} | ||
''; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env bash | ||
tmux switch-client -t :lazygit >/dev/null 2>&1 || tmux new-window -k -n 'lazygit' -c '#{pane_current_path}' lazygit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters