addet ssh different oh-my-posh theme
This commit is contained in:
parent
96a67ec996
commit
a952a742d8
1 changed files with 16 additions and 3 deletions
15
.zshrc
15
.zshrc
|
@ -81,9 +81,22 @@ error_log() {
|
||||||
|
|
||||||
__shell_qol__() {
|
__shell_qol__() {
|
||||||
if command_exists oh-my-posh; then
|
if command_exists oh-my-posh; then
|
||||||
|
|
||||||
|
# local zen=~/.zsh/themes/zen.toml
|
||||||
|
local info=~/.zsh/themes/clean-info.toml
|
||||||
|
local power=~/.zsh/themes/power10k_edit.toml
|
||||||
|
|
||||||
|
# if no ssh connection is there, use the $info theme
|
||||||
|
# else
|
||||||
|
# use the $power theme
|
||||||
|
if [ -z "$SSH_CONNECTION" ]; then
|
||||||
# eval "$(oh-my-posh init zsh --config 'https://git.k4li.de/dotfiles/oh-my-posh/raw/branch/main/amro.toml')"
|
# eval "$(oh-my-posh init zsh --config 'https://git.k4li.de/dotfiles/oh-my-posh/raw/branch/main/amro.toml')"
|
||||||
# eval "$(oh-my-posh init zsh --config '~/.zsh/themes/power10k_edit.toml')"
|
# eval "$(oh-my-posh init zsh --config '~/.zsh/themes/power10k_edit.toml')"
|
||||||
eval "$(oh-my-posh init zsh --config '~/.zsh/themes/clean-info.toml')"
|
# eval "$(oh-my-posh init zsh --config ${zen})"
|
||||||
|
eval "$(oh-my-posh init zsh --config ${info})"
|
||||||
|
else
|
||||||
|
eval "$(oh-my-posh init zsh --config ${power})"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo_missing "oh-my-posh"
|
echo_missing "oh-my-posh"
|
||||||
curl -s https://ohmyposh.dev/install.sh | $_sudo bash --norc -s -- -d /usr/bin/
|
curl -s https://ohmyposh.dev/install.sh | $_sudo bash --norc -s -- -d /usr/bin/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue