Skip to content

Commit

Permalink
Updated docker ctf setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazen committed Apr 11, 2019
1 parent 58ced01 commit 74e65b5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Personal dotfiles repo. Includes:
* vim
* bash
* docker



Expand All @@ -14,7 +15,7 @@ Personal dotfiles repo. Includes:
Run 'all' as a parameter to setup everything; otherwise specify which dot file to setup.

> ./install.sh (vim|bash|all)
> ./install.sh (vim|bash|docker|all)

# Vim
Expand Down Expand Up @@ -143,6 +144,10 @@ Other aliases:
* psg - ps aux | grep


# Docker

Builds docker ctf image.

# Help

Any bugs/concerns/issues/etc please email [email protected].
3 changes: 3 additions & 0 deletions aliases
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ alias pbp='pbpaste'
alias vim='nvim -u ~/.vimrc'
alias xcopy='xclip -i'
alias xpaste='xclip -o'
ctf() {
docker run -it -v $1:/data ctf
}
title() {
echo -ne "\e]0;$1\a"
}
Expand Down
6 changes: 4 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Script will install dot-files based on input
#
# Example: ./install.sh vim bash
# Example: ./install.sh vim bash docker
#
# [email protected]

Expand Down Expand Up @@ -105,6 +105,7 @@ function allsetup() {
echo "all"
vimsetup
bashsetup
dockersetup
}

### Verify and run input selections
Expand All @@ -113,8 +114,9 @@ for i in $@; do
case "$i" in
vim) vimsetup;;
bash) bashsetup;;
docker) dockersetup;;
all) allsetup;;
*) echo "Invalid name. Names: vim, bash, all";;
*) echo "Invalid name. Names: vim, bash, docker, all";;
esac
done

Expand Down

0 comments on commit 74e65b5

Please sign in to comment.