This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
local LAMBDA="%(?,%{$fg_bold[green]%}🚀,%{$fg_bold[red]%}🚀)" | |
if [[ "$USER" == "root" ]]; then USERCOLOR="red"; else USERCOLOR="yellow"; fi | |
# Git sometimes goes into a detached head state. git_prompt_info doesn't | |
# return anything in this case. So wrap it in another function and check | |
# for an empty string. | |
function check_git_prompt_info() { | |
if git rev-parse --git-dir > /dev/null 2>&1; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_shortcode('post_image_website_link', 'post_image_website_link'); | |
function post_image_website_link($atts) { | |
$postID = get_the_ID(); | |
$website_link = geodir_get_post_meta( $postID, 'website', true ); | |
$thumbnail = get_the_post_thumbnail( $postID, 'full' ); | |
return '<div class="featured-image">' | |
. '<a href="' . $website_link . '">' | |
. $thumbnail | |
. '</a>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "right", | |
"newline": true, | |
"segments": [ | |
{ | |
"background": "#29315A", | |
"foreground": "#43CCEA", |