Skip to content

Instantly share code, notes, and snippets.

@alexamiryan
Last active April 1, 2021 19:55
Show Gist options
  • Save alexamiryan/c016bc0477198a917736f3155a58f790 to your computer and use it in GitHub Desktop.
Save alexamiryan/c016bc0477198a917736f3155a58f790 to your computer and use it in GitHub Desktop.

~/.profile

if [[ "$(umask)" = "0000" ]]; then
    umask 0022
fi

~/.bashrc

if [ -z "$(pgrep ssh-agent)" ]; then
	rm -rf /tmp/ssh-*
	eval $(ssh-agent -s) > /dev/null
else
    export SSH_AGENT_PID=$(pgrep ssh-agent)
	export SSH_AUTH_SOCK=$(find /tmp/ssh-* -name agent.*)
fi

export VISUAL=vim
export EDITOR="$VISUAL"
export GPG_TTY=$(tty)

/etc/wsl.conf

[automount]
enabled = true
options = "metadata,umask=022,fmask=022,dmask=022"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment