From WebOS Internals
Jump to navigation Jump to search

After following the Bash Installation Tutorial one can use these examples below to change the bash environment.


#this sets up the nice environment
PS1='\n\[\e[1;30m\]\[\033)0\016\]\[\]lq\[\017\033(B\](\[\e[1;37m\]\u@\H\[\e[1;30m\])-(\[\e[1;37m\]\T\[\e[1;30m\])->\n\[\033)0\016\]\[\]mq\[\017\033(B\](\[\e[0;1m\]\w\[\e[1;30m\])--> \[\e[0m\]\$ '

#quick alias
alias free="free -m"
alias ls="ls -ap"
#ipkg-opt aliases
alias oupdate="sudo ipkg-opt update"
alias oinstall="sudo ipkg-opt install"
alias oremove="sudo ipkg-opt remove"
alias oshow="sudo ipkg-opt files"
alias osearch="sudo ipkg-opt list | grep "
#other quick aliases you should use
alias writing="sudo mount -o remount,rw /"
alias readonly="sudo mount -o remount,ro /"
#adhoc aliases -- fix plz ktnx 
alias adhoc="sudo iwconfig eth0 mode ad-hoc essid palmpre"
alias adhoc-up="sudo /usr/sbin/wifidriver -i"
alias adhoc-down="sudo /usr/sbin/wifidriver -u"
if [ -x /opt/games/fortune ]; then
    /opt/games/fortune -s

In order to gain a nice message of the day (motd) you can optionally choose to install bsdgames via optware

oinstall bsdgames


The aliases should be self explanatory. credits to ad-hoc wiki