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
#!/usr/bin/env bash | |
##ls -ld ~/.?* | tr -s ' ' | cut -d' ' -f9 | grep -v | |
##'history\|.ssh\|Trash\|sock\|dump\|Google\|npm\|DS_Store\|docker\|virtual\|CFUser\|lima\|nvm\|vscode' | |
#| xargs -I% sh -c 'FILE="%" && echo copying $FILE && | |
##echo -r $FILE ./home' | |
# copy dots | |
echo 'getting dot files...' | |
ls -ld ~/.?* | tr -s ' ' | cut -d' ' -f9 | grep -v '\.\.\|history\|.ssh\|.aws-sam\|AWSVPNClient\|Trash\|sock\|dump\|Google\|npm\|.DS_Store\|docker\|virtual\|CFUser\|lima\|nvm\|vscode\|cache\|.oh-my-zsh' | xargs -I% sh -c 'FILE="%" && echo copying $FILE && cp -r $FILE ./home' |
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
# add to .bashrc | |
# Set up ssh-agent | |
SSH_ENV="$HOME/.ssh/environment" | |
function start_ssh_agent { | |
echo "Initializing new SSH agent..." | |
touch $SSH_ENV | |
chmod 600 "${SSH_ENV}" | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' >> "${SSH_ENV}" |
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
#https://docs.docker.com/engine/install/ubuntu/ | |
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |