Skip to content

Commit

Permalink
Switched the preview generation from SVG to using an actual shell
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Aug 23, 2017
1 parent a7c9739 commit a3bd745
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 638 deletions.
41 changes: 41 additions & 0 deletions generatePreview.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/sh

FLAGS="-modules cwd,git,root"

mkdir -p /tmp/home/code/dotfiles;
cd /tmp/home/code/dotfiles/;
git init;
touch file1;
git add .;
git commit -m "commit";
touch 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/;
git init;
touch file1;
git add .;
git commit -m "commit";

export HOME=/tmp/home/

clear;

cd /tmp/home/code/dotfiles/;
powerline-go -shell bare $FLAGS;
echo git branch;
git branch;

powerline-go -shell bare $FLAGS;
echo badcmd;
echo "bash: badcmd: command not found";

powerline-go -shell bare $FLAGS -error 1;
echo "cd ~/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/;

powerline-go -shell bare $FLAGS;

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.
Loading

0 comments on commit a3bd745

Please sign in to comment.