Skip to content

Commit

Permalink
feat: update preview
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Apr 20, 2022
1 parent 56be7e5 commit 1098b49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions generatePreview.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/sh

FLAGS="-modules cwd,git,root"
FLAGS="-modules cwd,git,root -path-aliases=/tmp/home=~"

mkdir -p /tmp/home/code/dotfiles;
cd /tmp/home/code/dotfiles/;
git init;
touch file1;
git add .;
git commit -m "commit";
touch file2;
echo "hI" > file2;

mkdir -p /tmp/home/deep/down/into/the/abyss/of/directories/where/no/one/ever/comes/;
cd /tmp/home/deep/down/into/the/abyss/of/directories/where/no/one/ever/comes/;
Expand All @@ -26,7 +26,7 @@ clear;
cd /tmp/home/code/dotfiles/;
powerline-go -shell bare $FLAGS;
echo git branch;
git branch;
git branch --color=always | cat;

powerline-go -shell bare $FLAGS;
echo badcmd;
Expand All @@ -38,14 +38,4 @@ cd /tmp/home/deep/down/into/the/abyss/of/directories/where/no/one/ever/comes/;

powerline-go -shell bare $FLAGS;

# terraform
if hash terraform 2>/dev/null; then
mkdir -p /tmp/home/terraform && cd /tmp/home/terraform
echo "create terraform workspace named 'production' at ~/terraform"
terraform init 1>/dev/null && terraform workspace new production 1>/dev/null
powerline-go -shell bare $FLAGS
fi

rm -rf /tmp/home;

echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;
Binary file modified preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1098b49

Please sign in to comment.