diff options
-rw-r--r-- | flake.nix | 10 | ||||
-rw-r--r-- | readme.txt | 22 |
2 files changed, 27 insertions, 5 deletions
@@ -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 @@ | |||
1 | prompt | ||
2 | ------ | ||
3 | |||
4 | fast prompt helper tool to fetch vcs & cwd information, for | ||
5 | use 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 | |||
12 | usage | ||
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 | ||