Compare commits

..

2 commits

Author SHA1 Message Date
Nikolas Weger
01a037cdcc updated oh-my-posh script because --version is no longer valid 2024-11-06 11:51:59 +01:00
Nikolas Weger
2eb1adeed6 fixed zellij layout script 2024-10-23 12:15:24 +02:00
2 changed files with 2 additions and 2 deletions

View file

@ -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" && {

View file

@ -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