Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dcore:boot-scripts_source_20150429 [2015/05/04 11:56] – created sm8psdcore:boot-scripts_source_20150429 [2015/05/06 02:53] (current) – Added link to GIT-repo sm8ps
Line 1: Line 1:
 ====== Boot-scripts (source, 20150429) ====== ====== Boot-scripts (source, 20150429) ======
 +The scripts in their present state are available at the [[http://git.tinycorelinux.net/index.cgi?url=dCore-scripts.git/|GIT-repository]].
 +
 ===== 'init' (on initrd) ===== ===== 'init' (on initrd) =====
 <code Bash> <code Bash>
Line 798: Line 800:
 43   fi 43   fi
 44  done 44  done
 +</code>
 +
 +===== '~/.profile' =====
 +<code Bash>
 +  # ~/.profile: Executed by Bourne-compatible login SHells.
 +  #
 +  # Path to personal scripts and executables (~/.local/bin).
 +  [ -d "$HOME/.local/bin" ] || mkdir -p "$HOME/.local/bin"
 +  export PATH=$HOME/.local/bin:$PATH
 + 6  
 +  ONDEMAND=/etc/sysconfig/tcedir/ondemand
 +  [ -d "$ONDEMAND" ] && export PATH=$PATH:"$ONDEMAND"
 + 9  
 +10  # Environment variables and prompt for Ash SHell
 +11  # or Bash. Default is a classic prompt.
 +12  #
 +13  PS1='\u@\h:\w\$ '
 +14  PAGER='less -EM'
 +15  MANPAGER='less -isR'
 +16  LANG=en_US.UTF8
 +17  
 +18  `which editor >/dev/null` && EDITOR=editor || EDITOR=vi
 +19  
 +20  export PS1 PAGER LANG EDITOR MANPAGER
 +21  
 +22  export BACKUP=1
 +23  [ "`id -un`" = "`cat /etc/sysconfig/tcuser`" ] && echo "$BACKUP" | sudo tee /etc/sysconfig/backup >/dev/null 2>&1
 +24  export FLWM_TITLEBAR_COLOR="58:7D:AA"
 +25  
 +26  if [ -f "$HOME/.ashrc" ]; then
 +27     export ENV="$HOME/.ashrc"
 +28     . "$HOME/.ashrc"
 +29  fi
 +30  
 +31  TERMTYPE=`/bb/tty`
 +32  [ ${TERMTYPE:5:3} == "tty" ] && (
 +33  [ ! -f /usr/bin/Xorg ] ||
 +34  [ -f /etc/sysconfig/text ] ||
 +35  [ -e /tmp/.X11-unix/X0 ] || 
 +36  startx
 +37  )
 </code> </code>
 ===== '~/.ashrc' ===== ===== '~/.ashrc' =====
 <code Bash> <code Bash>
 +  # ~/.ashrc: Executed by SHells.
 +  #
 +  . /etc/init.d/tc-functions
 + 4  
 +  # Alias definitions.
 +  #
 +  alias df='df -h'
 +  alias du='du -h'
 + 9  
 +10  alias ls='ls -p'
 +11  alias ll='ls -l'
 +12  alias la='ls -la'
 +13  
 +14  # Avoid errors... use -f to skip confirmation.
 +15  alias cp='cp -i'
 +16  alias mv='mv -i'
 +17  alias rm='rm -i'
 </code> </code>
 ===== '~/.xinitrc' ===== ===== '~/.xinitrc' =====
Print/export
QR Code
QR Code dcore:boot-scripts_source_20150429 (generated for current page)