aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-01-29 17:15:16 +0000
committerAkshay <[email protected]>2022-01-29 17:15:16 +0000
commit4d3e72f5f03b5a0db1d69f262990a0519a9d8947 (patch)
treed9c8863ad310382fe24c4227ca1281e51e411e93
parent28b78e2cdc43fd8d0dbf35c3c79cf1b048f73f75 (diff)
add readme
-rw-r--r--flake.nix10
-rw-r--r--readme.txt22
2 files changed, 27 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix
index 3f416a9..f57d49b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -47,7 +47,7 @@
47 prompt = with final; 47 prompt = with final;
48 let 48 let
49 pname = "prompt"; 49 pname = "prompt";
50 packageMeta = (lib.importTOML ./bin/Cargo.toml).package; 50 packageMeta = (lib.importTOML ./Cargo.toml).package;
51 rustPlatform = makeRustPlatform { 51 rustPlatform = makeRustPlatform {
52 inherit (rustChannel final) cargo rustc; 52 inherit (rustChannel final) cargo rustc;
53 }; 53 };
@@ -56,10 +56,10 @@
56 inherit pname; 56 inherit pname;
57 inherit (packageMeta) version; 57 inherit (packageMeta) version;
58 58
59 buildInputs = [ 59 nativeBuildInputs = [ pkgconfig ];
60 final.openssl 60 buildInputs = [ openssl ];
61 final.pkgconfig 61
62 ]; 62 doCheck = false;
63 63
64 src = gitignoreSource ./.; 64 src = gitignoreSource ./.;
65 cargoLock.lockFile = ./Cargo.lock; 65 cargoLock.lockFile = ./Cargo.lock;
diff --git a/readme.txt b/readme.txt
new file mode 100644
index 0000000..ed9568c
--- /dev/null
+++ b/readme.txt
@@ -0,0 +1,22 @@
1prompt
2------
3
4fast prompt helper tool to fetch vcs & cwd information, for
5use with tmux:
6
7
8 set -g status-left "#(prompt cwd #{pane_current_path})"
9 set -ag status-left "#(prompt vcs #{pane_current_path})"
10
11
12usage
13-----
14
15 prompt cwd <some_path>
16 Compresses some_path and stripes $HOME from its
17 prefix
18
19 prompt vcs <some_path>
20 Fetches git ref (branch shorthand/commit OID),
21 repo file statuses and commit distance
22 information