Skip to content

Instantly share code, notes, and snippets.

View lessneek's full-sized avatar
🎯
Focusing

lessneek

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am lessneek on github.
  • I am lessneek (https://keybase.io/lessneek) on keybase.
  • I have a public key ASDNI8seIG1r0x0J2u__PyDaZZ5o46Fn3UJeD3uE5EE-gQo

To claim this, I am signing this object:

@lessneek
lessneek / fish_prompt.fish
Created February 28, 2025 18:21
Display a toolbox container name in a fish shell prompt
function fish_prompt
set -l __last_command_exit_status $status
if not set -q -g __fish_arrow_functions_defined
set -g __fish_arrow_functions_defined
function _git_branch_name
set -l branch (git symbolic-ref --quiet HEAD 2>/dev/null)
if set -q branch[1]
echo (string replace -r '^refs/heads/' '' $branch)
else