Skip to content

Commit

Permalink
Move android startup to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
giggio committed Jan 27, 2024
1 parent 4cd139f commit 27569e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
11 changes: 11 additions & 0 deletions bashrc-android.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

# put your script here for Android/Termux only

if uname -a | grep android &> /dev/null; then
export ANDROID=true
else
export ANDROID=false
fi

if ! $ANDROID; then return; fi
5 changes: 0 additions & 5 deletions bashrc-wsl.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

# put your script here for WSL only

if uname -a | grep android &> /dev/null; then
export ANDROID=true
else
export ANDROID=false
fi
if grep '[Mm]icrosoft' /proc/version &> /dev/null; then
export WSL=true
else
Expand Down

0 comments on commit 27569e4

Please sign in to comment.