Compare commits
2 commits
e7322f20a9
...
01a037cdcc
Author | SHA1 | Date | |
---|---|---|---|
|
01a037cdcc | ||
|
2eb1adeed6 |
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name')"
|
||||
localVersion="v$(oh-my-posh --version)"
|
||||
localVersion="v$(oh-my-posh version)"
|
||||
tmpFile="$(mktemp -u)"
|
||||
|
||||
test "$newestVersion" != "$localVersion" && {
|
||||
|
|
|
@ -3,6 +3,6 @@ set -euo pipefail
|
|||
ZJ_LAYOUT_DIR=$(zellij setup --check | grep "LAYOUT DIR" - | grep -o '".*"' - | tr -d '"')
|
||||
|
||||
if [[ -d "${ZJ_LAYOUT_DIR}" ]]; then
|
||||
ZJ_LAYOUT="$(fd --type file . "${ZJ_LAYOUT_DIR}" | sed 's|.*/||' | fzf || exit)"
|
||||
ZJ_LAYOUT="$ZJ_LAYOUT_DIR/$(fd --type file . "${ZJ_LAYOUT_DIR}" | sed 's|.*/||' | fzf || exit)"
|
||||
zellij --layout "${ZJ_LAYOUT}"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue