Skip to content

Add prompt format strings for socket connections#1563

Open
rolandwalker wants to merge 1 commit intomainfrom
RW/prompt-escapes-for-sockets
Open

Add prompt format strings for socket connections#1563
rolandwalker wants to merge 1 commit intomainfrom
RW/prompt-escapes-for-sockets

Conversation

@rolandwalker
Copy link
Contributor

Description

  • \j - connection socket basename
  • \J - full connection socket path
  • \k - connection socket basename OR the port
  • \K - full connection socket path OR the port

the most handy of which is probably \k, which will show the socket basename if it exists, and if not, the port.

Incidentally, further fix up the prompt commentary in myclirc files.

Checklist

  • I added this contribution to the changelog.md file.
  • I added my name to the AUTHORS file (or it's already there).
  • To lint and format the code, I ran
    uv run ruff check && uv run ruff format && uv run mypy --install-types .

 * \j - connection socket basename
 * \J - full connection socket path
 * \k - connection socket basename OR the port
 * \K - full connection socket path OR the port

the most handy of which is probably \k, which will show the socket
basename if it exists, and if not, the port.

Incidentally, further fix up the prompt commentary in myclirc files.
Copy link
Contributor

@scottnemes scottnemes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified new socket related prompt options display as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants