mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
chore(scripts): extract oh-my-posh screenshotter
This commit is contained in:
11
scripts/create-omp-screenshot.sh
Executable file
11
scripts/create-omp-screenshot.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# shellcheck source=shared.sh
|
||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
||||
set -e
|
||||
|
||||
cd "$DOTFILES" || exit
|
||||
oh-my-posh config export image \
|
||||
--config "$OHMYPOSH_CFG" \
|
||||
--output "$HOME/.dotfiles/.github/screenshots/oh-my-posh.png" \
|
||||
--author "Ismo Vuorinen"
|
||||
@@ -7,12 +7,5 @@ source "$HOME/.dotfiles/scripts/shared.sh"
|
||||
|
||||
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/.local/bin
|
||||
|
||||
OHMYPOSH_CFG="$HOME/.dotfiles/config/omp/own.toml"
|
||||
|
||||
eval "$(oh-my-posh init zsh --config $OHMYPOSH_CFG)"
|
||||
|
||||
#cd ~/.dotfiles || exit
|
||||
#oh-my-posh config export image \
|
||||
# --config "$OHMYPOSH_CFG" \
|
||||
# --output "~/.dotfiles/.github/screenshots/oh-my-posh.png" \
|
||||
# --author "Ismo Vuorinen"
|
||||
|
||||
@@ -27,6 +27,9 @@ export XDG_BIN_HOME="$HOME/.local/bin"
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
export XDG_RUNTIME_DIR="$HOME/.local/run"
|
||||
|
||||
# Other variables
|
||||
export OHMYPOSH_CFG="$HOME/.dotfiles/config/omp/own.toml"
|
||||
|
||||
# Remove directory from the PATH variable
|
||||
# usage: path_remove ~/.local/bin
|
||||
function path_remove
|
||||
|
||||
Reference in New Issue
Block a user