Skip to content

Instantly share code, notes, and snippets.

View Rutzmoser's full-sized avatar

j_rutzmoser Rutzmoser

  • Daimler
  • Stuttgart
View GitHub Profile
@Rutzmoser
Rutzmoser / config_example.fish
Created March 8, 2025 10:22
Multi-cd functionality pimped a little bit - a shameless rip-off from the fish website video
# modified string matching regex from fish website video
function multicd
set --local length (math (string length -- (string match --regex '\.\.+$' $argv)) - 1)
echo (string repeat -n $length ../)
end
abbr --add dotdot --regex '^\.\.+$' --function multicd
abbr --add cddotdot --command cd --regex '\.\.+$' --function multicd