Skip to content

Instantly share code, notes, and snippets.

@anoopengineer
anoopengineer / Mac SSH Autocomplete
Created November 21, 2015 17:34 — forked from aliang/Mac SSH Autocomplete
Add auto complete to your ssh, put into your .bash_profile
_complete_ssh_hosts ()
{
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \
cut -f 1 -d ' ' | \
sed -e s/,.*//g | \
grep -v ^# | \
uniq | \
grep -v "\[" ;
@anoopengineer
anoopengineer / .gitconfig
Created August 20, 2024 18:41 — forked from watamario15/.gitconfig
Git configurations to use VSCode, WinMerge, and UnityYAMLMerge on WSL.
[diff]
tool = vscode
[difftool]
prompt = false
[difftool "vscode"]
cmd = code --wait --diff "$LOCAL" "$REMOTE"
trustExitCode = false
[difftool "winmerge"]
cmd = '/mnt/c/Users/watamario15/AppData/Local/Programs/WinMerge/WinMergeU.exe' -e -r -u -x -wl -wr -dl "Your $MERGED" -dr "Incoming $MERGED" "$LOCAL" "$REMOTE"
trustExitCode = false