Skip to content

Instantly share code, notes, and snippets.

View shyamzzp's full-sized avatar
🏠
Working from home

Shyam Suthar shyamzzp

🏠
Working from home
View GitHub Profile
#!/usr/bin/env bash
set -euo pipefail
SHORTCUTS_DIR="${HOME}/.config/git-shortcuts"
SHORTCUTS_FILE="${SHORTCUTS_DIR}/git-shortcuts.sh"
SOURCE_LINE='[ -f "$HOME/.config/git-shortcuts/git-shortcuts.sh" ] && source "$HOME/.config/git-shortcuts/git-shortcuts.sh"'
backup_if_exists() {
local file_path="$1"
if [ -f "${file_path}" ]; then
#!/usr/bin/env bash
set -euo pipefail
SHORTCUTS_DIR="${HOME}/.config/git-shortcuts"
SHORTCUTS_FILE="${SHORTCUTS_DIR}/git-shortcuts.sh"
SOURCE_LINE='[ -f "$HOME/.config/git-shortcuts/git-shortcuts.sh" ] && source "$HOME/.config/git-shortcuts/git-shortcuts.sh"'
backup_if_exists() {
local file_path="$1"
if [ -f "${file_path}" ]; then
#!/usr/bin/env bash
set -euo pipefail
SHORTCUTS_DIR="${HOME}/.config/git-shortcuts"
SHORTCUTS_FILE="${SHORTCUTS_DIR}/git-shortcuts.sh"
SOURCE_LINE='[ -f "$HOME/.config/git-shortcuts/git-shortcuts.sh" ] && source "$HOME/.config/git-shortcuts/git-shortcuts.sh"'
backup_if_exists() {
local file_path="$1"
if [ -f "${file_path}" ]; then
@shyamzzp
shyamzzp / ghost-drive-install-remote-gist.sh
Last active March 30, 2026 04:38
GhostDrive install bootstrap for curl | bash
#!/usr/bin/env bash
set -euo pipefail
GHOSTDRIVE_REPO="${GHOSTDRIVE_REPO:-shyamzzp/ghost-drive}"
GHOSTDRIVE_REF="${GHOSTDRIVE_REF:-main}"
GHOSTDRIVE_INSTALL_DIR="${GHOSTDRIVE_INSTALL_DIR:-$HOME/.local/bin}"
GHOSTDRIVE_SKIP_PROFILE_HINT="${GHOSTDRIVE_SKIP_PROFILE_HINT:-0}"
GHOSTDRIVE_WORKDIR=""
GHOSTDRIVE_GITHUB_TOKEN=""