pkgs#purs: show user@host inside ssh session
This commit is contained in:
parent
42ed7910b1
commit
34f27bd3f3
2 changed files with 5 additions and 5 deletions
|
@ -10,15 +10,15 @@ in buildRustPackage {
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
|
|
||||||
srcs = fetchFromGitHub {
|
srcs = fetchFromGitHub {
|
||||||
owner = "xcambar";
|
owner = "TimB87";
|
||||||
repo = "purs";
|
repo = "purs";
|
||||||
rev = "09ed252625b691841b0043699fd4ab590edabe29";
|
rev = "ee40ff5edf79a1aee7f87b97ca32744944778769";
|
||||||
hash = "sha256-QwkbqNROksRo+QmRrgkWuoPzPb2XBwavEtlR9oqAXDQ=";
|
hash = "sha256-ETU7dDGVa2ggM+qoFgi8k4MJNuqb3kNCX9ZbEA4r5PM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ openssl pkgconfig ];
|
buildInputs = [ openssl pkgconfig ];
|
||||||
|
|
||||||
cargoSha256 = "sha256-vyO2JRRA7FCNVmIeN1xybQXkdgoHbhMGT2AhUJEnp0s=";
|
cargoSha256 = "sha256-xdDSh4CvUHA8SWBZn21UnNRXZ/SU7RdfNcJjqyE9OXA=";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/zsh/plugins/purs
|
mkdir -p $out/share/zsh/plugins/purs
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
function zle-line-init zle-keymap-select {
|
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 reset-prompt
|
||||||
}
|
}
|
||||||
zle -N zle-line-init
|
zle -N zle-line-init
|
||||||
|
|
Loading…
Reference in a new issue