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
{
"home":{
"firstheading":"Updated Name the Globe"
}
}
@shyamzzp
shyamzzp / book-layout.markdown
Created September 2, 2022 09:29
Book Layout
@shyamzzp
shyamzzp / book-layout.markdown
Created September 2, 2022 09:29
Book Layout
#!/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
#!/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
#!/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