Skip to content

Instantly share code, notes, and snippets.

View laranz's full-sized avatar
🚴‍♀️
Wannabe a WordPress Wizard!

Lawrence Joe laranz

🚴‍♀️
Wannabe a WordPress Wizard!
View GitHub Profile
#!/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
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>'
@laranz
laranz / bubblesextra.omp.json
Created October 15, 2022 14:01
My Customized bubblesextra theme for Oh My Posh.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "right",
"newline": true,
"segments": [
{
"background": "#29315A",
"foreground": "#43CCEA",