Skip to content

Instantly share code, notes, and snippets.

View raghavauppuluri13's full-sized avatar
🎯
Focusing

Raghava Uppuluri raghavauppuluri13

🎯
Focusing
View GitHub Profile
setopt globdots
setopt autocd
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@raghavauppuluri13
raghavauppuluri13 / obsidian-push-on-close.sh
Created May 30, 2023 14:37
Push/pull on obsidian open/close
#!/bin/bash
repo_path="/home/raghava/knowledge_vault"
branch="master"
commit_message="update"
state_file="/tmp/running-obsidian-state.txt"
while true; do
@raghavauppuluri13
raghavauppuluri13 / .vimrc
Last active February 1, 2023 15:07
vimrc
set shell=/bin/bash
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
How to write good commits
Squashing
# Squashes the previous 2 commits and staged changes
git reset --soft HEAD~1 && git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})"
@raghavauppuluri13
raghavauppuluri13 / forgot_to_check_out_with_recurse_submodules.md
Last active March 17, 2022 18:06 — forked from cnlohr/forgot_to_check_out_with_recurse_submodules.md
Git forgot to clone recursively (forgot to check out with recurse submodules)