mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
distro files and init: set term var in init and fix prompt size
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
NORMAL="\e[0m"
|
||||
RED="\e[1;31m"
|
||||
GREEN="\e[1;32m"
|
||||
BLUE="\e[1;36m"
|
||||
WHITE="\e[1;37m"
|
||||
NORMAL="\[\e[0m\]"
|
||||
RED="\[\e[1;31m\]"
|
||||
GREEN="\[\e[1;32m\]"
|
||||
BLUE="\[\e[1;36m\]"
|
||||
WHITE="\[\e[1;37m\]"
|
||||
PS1="$GREEN\u$NORMAL@$BLUE\h$NORMAL:$WHITE\w$NORMAL>"
|
||||
|
||||
alias ls="ls --color=auto"
|
||||
export TERM=linux
|
||||
|
||||
+2
-1
@@ -135,7 +135,8 @@ int main(int argc, char* argv[]){
|
||||
chdir(pw->pw_dir);
|
||||
setenv("PATH", "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin", 1);
|
||||
setenv("DISPLAY", ":0", 1);
|
||||
|
||||
setenv("TERM", "linux", 1);
|
||||
|
||||
printf("init: running /etc/rc\n");
|
||||
|
||||
// execute init script
|
||||
|
||||
Reference in New Issue
Block a user