pkgs#purs: show user@host inside ssh session

This commit is contained in:
Timothy DeHerrera 2020-07-16 18:43:28 -06:00
parent 42ed7910b1
commit 34f27bd3f3
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122
2 changed files with 5 additions and 5 deletions

View file

@ -10,15 +10,15 @@ in buildRustPackage {
version = "0.1.0";
srcs = fetchFromGitHub {
owner = "xcambar";
owner = "TimB87";
repo = "purs";
rev = "09ed252625b691841b0043699fd4ab590edabe29";
hash = "sha256-QwkbqNROksRo+QmRrgkWuoPzPb2XBwavEtlR9oqAXDQ=";
rev = "ee40ff5edf79a1aee7f87b97ca32744944778769";
hash = "sha256-ETU7dDGVa2ggM+qoFgi8k4MJNuqb3kNCX9ZbEA4r5PM=";
};
buildInputs = [ openssl pkgconfig ];
cargoSha256 = "sha256-vyO2JRRA7FCNVmIeN1xybQXkdgoHbhMGT2AhUJEnp0s=";
cargoSha256 = "sha256-xdDSh4CvUHA8SWBZn21UnNRXZ/SU7RdfNcJjqyE9OXA=";
postInstall = ''
mkdir -p $out/share/zsh/plugins/purs

View file

@ -1,5 +1,5 @@
function zle-line-init zle-keymap-select {
PROMPT=`@PURS@/bin/purs prompt -k "$KEYMAP" -r "$?" --venv "${${VIRTUAL_ENV:t}%-*}"`
PROMPT=`@PURS@/bin/purs prompt -us -k "$KEYMAP" -r "$?" --venv "${${VIRTUAL_ENV:t}%-*}"`
zle reset-prompt
}
zle -N zle-line-init