Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 20ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login Register
s

starship

Recently created Least recently created Recently updated Least recently updated

weehong / [Setup] Zsh Setup

Last active 3 weeks ago setup zsh oh-my-zsh starship dotfiles shell bash macos ubuntu wsl

Cross-platform Zsh setup scripts and managed dotfiles with Oh My Zsh framework, Starship prompt, aliases, functions, and path configuration.

0 0 19
1 # =============================================================================
2 # 1. HELPER FUNCTIONS & PATH
3 # =============================================================================
4 source_if_readable() {
5 local file="$1"
6 if [[ -f "$file" && -r "$file" ]]; then
7 source "$file"
8 fi
9 }