Skip to content

Commit

Permalink
Reuse same value in zj alias func
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 30, 2023
1 parent d8614e1 commit 8113f5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion home/.local/share/homemade/bin/zj.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

zellij attach "$(basename "$PWD")" || zellij --session "$(basename "$PWD")"
name="$(basename "$PWD")"

zellij attach "$name" || zellij --session "$name"

0 comments on commit 8113f5b

Please sign in to comment.