forked from justjanne/powerline-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generatePreview.sh
executable file
·41 lines (31 loc) · 1009 Bytes
/
generatePreview.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
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";
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/;
git init;
touch file1;
git add .;
git commit -m "commit";
echo "test">file1;
git stash;
export HOME=/tmp/home/
clear;
cd /tmp/home/code/dotfiles/;
powerline-go -shell bare $FLAGS;
echo git branch;
git branch --color=always | cat;
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;
echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;