Skip to content

Commit

Permalink
adds ability to install many at once
Browse files Browse the repository at this point in the history
  • Loading branch information
flovilmart committed Nov 4, 2024
1 parent 0323749 commit 0967b49
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vimrc/temp_dirs
# Ingore the TS parsers as they're compiled against the target
vimrc/plugged/nvim-treesitter/parser
vimrc/plugged
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ WORKDIR /root/src/flovilmart/dotfiles

COPY . .

RUN ./install.sh dotfiles
RUN ./install.sh nushell
RUN ./install.sh fix_nu_path
RUN ./install.sh tmux_plugins
RUN ./install.sh starship
RUN ./install.sh dotfiles nushell fix_nu_path tmux_plugins starship
# Adds SSH keys to make sure we can clone submodules
RUN --mount=type=ssh ./install.sh vim

Expand Down
13 changes: 7 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -ex
all() {
brew
Expand Down Expand Up @@ -114,9 +116,8 @@ alanuship() {
nushell
}

# Check which function to invoke
invoke=$1
shift

# Invoke the function and pass args
$invoke $@
while (("$#")) ; do
echo "Running $1"
$1
shift
done

0 comments on commit 0967b49

Please sign in to comment.