cizia64 / CrossMix-OS

Enhanced OS for the TrimUI Smart Pro
GNU General Public License v3.0
318 stars 38 forks source link

Aliases in Simple Terminal? #107

Open tyusha0 opened 4 months ago

tyusha0 commented 4 months ago

Is this possible? I tried different options, but busybox doesn't seem to allow it.

cizia64 commented 4 months ago

Busybox seems to support it as it's working in SSH 🤔

tyusha0 commented 4 months ago

Busybox seems to support it as it's working in SSH 🤔

In SSH work ash -l, this works in the terminal too https://xdaforums.com/t/is-it-possible-to-do-aliases-with-busybox.521770/

cizia64 commented 4 months ago

Great so you have a solution :) What are you planning to do with alias ?

tyusha0 commented 4 months ago

/etc/profile is set to these aliases:

[ -x /bin/more ] || alias more=less [ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi [ -x /bin/ll ] || alias ll='ls -al'

and PATH: export PATH="/usr/sbin:/usr/bin:/sbin:/bin"

but I would add a couple more cuts in ~/.profile

alias cls='clear' alias la='ls -a' alias ll='ls -alFh' alias htop='LD_LIBRARY_PATH="/mnt/SDCARD/System/lib" /mnt/SDCARD/System/bin/htop'