Profile.d
Revision as of 00:06, 22 July 2009 by Hopspitfire (talk | contribs) (New page: After following the [http://predev.wikidot.com/bash-installing Bash Installation Tutorial] one can use these examples below to change the bash environment. /etc/profile.d/profile.custom...)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
After following the Bash Installation Tutorial one can use these examples below to change the bash environment.
/etc/profile.d/profile.custom
#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" #bsdgames if [ -x /opt/games/fortune ]; then /opt/games/fortune -s fi
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