Skip to content

Instantly share code, notes, and snippets.

View vraravam's full-sized avatar

Vijay Aravamudhan vraravam

  • ThoughtWorks Inc.
  • Chennai, India
  • X @avijayr1
View GitHub Profile
@vraravam
vraravam / Brewfile
Last active May 3, 2024 03:19
~/Brewfile
# file location: ${HOME}/Brewfile
# This file is used along with the `brew bundle` command to ensure that required packages and apps are installed.
# Also can be used to ensure that any package/apps that were installed as experimentation are uninstalled from the system.
# For a more detailed explanation of the philosophy/reasoning behind this file, please see https://openfolder.sh/macos-migrations-with-brewfile
# If you are starting such a file on a machine where you have already installed some apps using brew, then use `brew bundle dump` to create this file and avoid starting from scratch
# alias bcg='brew outdated --greedy' # List all casks that are outdated like a "dry-run" (and which have version marked as 'latest')
# alias bcug='brew upgrade --greedy' # Upgrades all casks that are outdated (and which have version marked as 'latest')
@vraravam
vraravam / fresh-install-of-osx.sh
Last active April 29, 2024 10:56
Steps to get "up and running" with new Mac OSX
#!/usr/bin/env zsh
# This script can be used to setup a macos machine based on Vijay's configurations. As of now, this script is idempotent and will restore your local setup to the same state if run multiple times.
# If you have the same files already present, it will prompt you whether to override or not
# file location: <anywhere> (just need to invoke it from that location)
# You can run this script using this command:
# curl -L https://gist.githubusercontent.com/vraravam/04fc2296b25090ea848642afbce4d168/raw -o fresh-install.sh; chmod +x ./fresh-install.sh; ./fresh-install.sh
# BEFORE STARTING TO RUN THIS SCRIPT (for the first time on a new machine)
@vraravam
vraravam / .zshrc.custom
Last active April 27, 2024 09:40
This is a companion script for the `~/.zshrc` file
#!/usr/bin/env zsh
# vim:syntax=zsh
# vim:filetype=zsh
# file location: ${HOME}/.zshrc.custom
# Note: This file depends on the ${HOME}/.zshrc that is also shared for some shell functions
load_file_if_exists "${HOME}/.aliases"
@vraravam
vraravam / .gitconfig-template.inc
Last active April 18, 2024 09:20
~/.gitconfig-template.inc
# file location: ~/.gitconfig-template.inc
[user]
name = <your-name>
email = <your-email>
@vraravam
vraravam / .gitconfig
Last active April 18, 2024 09:20
Git configuration file (~/.gitconfig)
# file location: ~/.gitconfig
# Note:
# [Windows users] If you are on windows, please search for the word 'windows' - and fix those lines - they seem to cause some trouble
# [General] Since some of the settings are specific to my setup (ie presence of fles), I have marked those lines with comments 'Personal' - you can go ahead and change those to your equivalents or delete them altogether
# [General] Since I use 'diff-so-fancy' as the diffing tool, it's absence on your system will cause some errors. If you are able to, I would sincerely urge you to install and use it for a much better experience. If not, please replace all such occurrences back to use 'diff'
# Note: Even though this will show up twice in `git config -l` - it will still be overridden based on the order of the includeIf lines below
[includeIf "gitdir/i:~/"] # Personal
path = ~/.gitconfig-oss.inc # Personal
@vraravam
vraravam / .gitignore
Last active April 18, 2024 09:19
~/.gitignore
# file location: ${HOME}/.gitignore
!.bundle/config
!.keep
.~lock*#
.babel.json
.boxfuse/
.bundle/cache
.cisco/vpn/log
@vraravam
vraravam / .p10k.zsh
Last active April 18, 2024 09:17
File location: ~/.p10k.zsh
# Generated by Powerlevel10k configuration wizard on 2024-03-24 at 07:22 IST.
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 4117.
# Wizard options: nerdfont-v3 + powerline, small icons, rainbow, unicode, 12h time,
# angled separators, sharp heads, flat tails, 1 line, compact, many icons, concise,
# fluent, instant_prompt=quiet.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with powerline prompt style with colorful background.
# Type `p10k configure` to generate your own config based on it.
#
@vraravam
vraravam / .aliases
Last active April 18, 2024 09:17
~/.aliases
#!/usr/bin/env zsh
# vim:syntax=zsh
# vim:filetype=zsh
# file location: ${HOME}/.aliases
# Add flags to existing aliases.
alias less="${aliases[less]:-less} -RF"
alias ls="${aliases[ls]:-ls} -G"
@vraravam
vraravam / .zshrc
Last active April 18, 2024 09:15
~/.zshrc - for use along with the "fresh_install_of_osx" file - to automtically configure omz plugins and settings.
#!/usr/bin/env zsh
# vim:syntax=zsh
# vim:filetype=zsh
# file location: ${HOME}/.zshrc
# Optimizing zsh: https://htr3n.github.io/2018/07/faster-zsh/
# for profiling zsh, see: https://unix.stackexchange.com/a/329719/27109
@vraravam
vraravam / .zprofile
Last active April 18, 2024 09:14
This is a companion script for the `~/.zshrc` file
#!/usr/bin/env zsh
# vim:syntax=zsh
# vim:filetype=zsh
# file location: ${HOME}/.zprofile
# Note: This file is loaded BEFORE ${HOME}/.zshrc
# login shell - only env vars and other functions that don't load anything should go in here
# This is a companion script for the `${HOME}/.zshrc` file