All New

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

Register

Login

All New Register Login

All gists matching topic zsh

Recently created
Least recently created
Recently updated
Least recently updated

weehong / Developer Environment Installer

0 likes
0 forks
2 files
Last active 3 weeks ago
Interactive developer environment bootstrapper for Zsh/Bash with repeatable workstation setup helpers.
developer-environment bootstrap installer zsh bash tooling setup automation
1 #!/usr/bin/env bash
2
3 # =======================================================
4 # 1. BOOTSTRAPPER: PREFER ZSH, FALLBACK TO BASH
5 # =======================================================
6 if [ -z "${_PREFER_ZSH_BOOTSTRAPPED:-}" ]; then
7 export _PREFER_ZSH_BOOTSTRAPPED=1
8
9 # Only attempt to re-execute if $0 is an actual file on disk.
10 # This prevents the 'can't open input file' error when running

weehong / Zsh Setup

0 likes
0 forks
12 files
Last active 2 weeks ago
Cross-platform Zsh setup scripts and managed dotfiles with Oh My Zsh framework, Starship prompt, aliases, functions, and path configuration.
zsh oh-my-zsh starship dotfiles shell bash macos ubuntu wsl
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 }
Newer Older

Powered by Opengist ⋅ Load: 28ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文