Skip to content

Commit 27569e4

Browse files
committed
Move android startup to a file
1 parent 4cd139f commit 27569e4

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

bashrc-android.bash

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
# put your script here for Android/Termux only
4+
5+
if uname -a | grep android &> /dev/null; then
6+
export ANDROID=true
7+
else
8+
export ANDROID=false
9+
fi
10+
11+
if ! $ANDROID; then return; fi

bashrc-wsl.bash

-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
# put your script here for WSL only
44

5-
if uname -a | grep android &> /dev/null; then
6-
export ANDROID=true
7-
else
8-
export ANDROID=false
9-
fi
105
if grep '[Mm]icrosoft' /proc/version &> /dev/null; then
116
export WSL=true
127
else

0 commit comments

Comments
 (0)