Last active
March 31, 2019 21:12
-
-
Save koenmetsu/ad9dfc78e38a38d6430dbdf6c6f2a791 to your computer and use it in GitHub Desktop.
Remaster Windows workstation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env=~/.ssh/agent.env | |
agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; } | |
agent_start () { | |
(umask 077; ssh-agent >| "$env") | |
. "$env" >| /dev/null ; } | |
agent_load_env | |
# agent_run_state: 0=agent running w/ key; 1=agent w/o key; 2= agent not running | |
agent_run_state=$(ssh-add -l >| /dev/null 2>&1; echo $?) | |
if [ ! "$SSH_AUTH_SOCK" ] || [ $agent_run_state = 2 ]; then | |
agent_start | |
ssh-add | |
elif [ "$SSH_AUTH_SOCK" ] && [ $agent_run_state = 1 ]; then | |
ssh-add | |
fi | |
unset env | |
export PS1='\[\e[33m\][\t]\[$(tput sgr0)\] '$'=> \[\e[32m\]\w\[\e[35m\]$(__git_ps1)\[\e[0m\] '$'\n\$\[\e[0m\] ' | |
export GIT_PS1_SHOWDIRTYSTATE=1 | |
export GIT_PS1_SHOWSTASHSTATE=1 | |
export GIT_PS1_SHOWUNTRACKEDFILES=1 | |
export GIT_PS1_SHOWUPSTREAM="auto" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
choco install keepass -y | |
choco install googlechrome -y | |
choco install firefox -y | |
choco install 7zip.install -y | |
choco install git.install -y | |
choco install nodejs.install -y | |
choco install jetbrainstoolbox -y | |
choco install visualstudio2017community -y | |
choco install sql-server-management-studio -y | |
choco install cmder -y | |
choco install dotnetcore-sdk -y | |
choco install visualstudiocode -y | |
choco install docker -y | |
choco install jing -y | |
choco install slack -y | |
choco install notepadplusplus -y | |
choco install windirstat -y | |
choco install f.lux -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-ExecutionPolicy RemoteSigned |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment