mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-15 16:59:00 +12:00
Make bash the default shell
This commit is contained in:
parent
12bb95c0f4
commit
05fa94bbc3
1 changed files with 2 additions and 10 deletions
|
@ -20,22 +20,14 @@ public class ShellTypes {
|
||||||
public static final ShellType SH = new Sh();
|
public static final ShellType SH = new Sh();
|
||||||
public static final ShellType BASH = new Bash();
|
public static final ShellType BASH = new Bash();
|
||||||
|
|
||||||
public static ShellType getRecommendedDefault() {
|
public static ShellType getPlatformDefault() {
|
||||||
if (System.getProperty("os.name").startsWith("Windows")) {
|
if (OsType.getLocal().equals(OsType.WINDOWS)) {
|
||||||
return CMD;
|
return CMD;
|
||||||
} else {
|
} else {
|
||||||
return BASH;
|
return BASH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ShellType getPlatformDefault() {
|
|
||||||
if (System.getProperty("os.name").startsWith("Windows")) {
|
|
||||||
return CMD;
|
|
||||||
} else {
|
|
||||||
return SH;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static ShellType[] getWindowsShells() {
|
public static ShellType[] getWindowsShells() {
|
||||||
return new ShellType[] {CMD, POWERSHELL};
|
return new ShellType[] {CMD, POWERSHELL};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue