opened
yegortimoshenko
username_0
###### Motivation for this change

Before:

![before](https://user-images.githubusercontent.com/1643293/49669214-bf263200-fa71-11e8-8871-84d8bfb8bb10.png)

After:

![after](https://user-images.githubusercontent.com/1643293/49669222-c6e5d680-fa71-11e8-8af8-4a0a326b8137.png)

This is the default behavior on Debian. It helps to differentiate between different NixOS systems (when some windows run SSH) and between different local paths, while also properly integrating with Vim's `set title`.

###### Things done

<!-- Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers. -->

- [ ] Tested using sandboxing ([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS, or option `sandbox` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file) on non-NixOS)
- Built on platform(s)
   - [x] NixOS
   - [ ] macOS
   - [ ] other Linux distributions
- [ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests))
- [ ] Tested compilation of all pkgs that depend on this change using `nix-shell -p nox --run "nox-review wip"`
- [ ] Tested execution of all binary files (usually in `./result/bin/`)
- [ ] Determined the impact on package closure size (by running `nix path-info -S` before and after)
- [ ] Assured whether relevant documentation is up to date
- [x] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md).

---
nixos/bash: set title in PS1
issue
created
grahamc
username_1
LGTM!
comment
created
tadfisher
username_2
This broke my Emacs prompt, btw.
comment
created
tadfisher
username_2
Example:

```
[0;tad@curie: ~/src/pass-otptad@curie:~/src/pass-otp]$ 
```
comment