my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
979 B

3 years ago
  1. # last-working-dir plugin
  2. Keeps track of the last used working directory and automatically jumps into it
  3. for new shells, unless the starting directory is not `$HOME`.
  4. Also adds a `lwd` function to jump to the last working directory.
  5. To use it, add `last-working-dir` to the plugins array in your zshrc file:
  6. ```zsh
  7. plugins=(... last-working-dir)
  8. ```
  9. ## Features
  10. ### Use separate last-working-dir files with different SSH keys
  11. If the same user account is used by multiple users connecting via different SSH keys, you can
  12. configure SSH to map them to different `SSH_USER`s and the plugin will use separate lwd files
  13. for each one.
  14. Make sure that your SSH server allows environment variables. You can enable this feature
  15. within the `/etc/sshd/sshd_config` file:
  16. ```
  17. PermitUserEnvironment yes
  18. ```
  19. Then, add `environment="SSH_USER=<SSH_USERNAME>"` before the SSH keys in your `authorized_keys` file:
  20. ```
  21. environment="[email protected]" ssh-ed25519 AAAAC3Nz...
  22. ```