Skip to content

profile

Chris Brandt edited this page Oct 7, 2024 · 3 revisions

vi ~/.profile

Profile for Yocto (bash)

alias ls='ls --color=auto -p --group-directories-first'
alias l='ls -CF'
alias la='ls -Ap'
alias ll='ls --time-style="+%b %d,%Y %H:%M %p" -Alp --group-directories-first'
alias lll='ls -lph'

# Print current colors:  $ dircolors

# Default bright bash colors (but the bold sometimes makes it hard to see in some terminals)
#------------------------
#LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:';

# Default bash colors, but not bold (because sometimes bold makes it hard to see in some terminals)
#------------------------LS_COLORS='no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:do=00;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tbz2=00;31:*.tz=00;31:*.deb=00;31:*.rpm=00;31:*.jar=00;31:*.rar=00;31:*.ace=00;31:*.zoo=00;31:*.cpio=00;31:*.7z=00;31:*.rz=00;31:*.jpg=00;35:*.jpeg=00;35:*.gif=00;35:*.bmp=00;35:*.pbm=00;35:*.pgm=00;35:*.ppm=00;35:*.tga=00;35:*.xbm=00;35:*.xpm=00;35:*.tif=00;35:*.tiff=00;35:*.png=00;35:*.mng=00;35:*.pcx=00;35:*.mov=00;35:*.mpg=00;35:*.mpeg=00;35:*.m2v=00;35:*.mkv=00;35:*.ogm=00;35:*.mp4=00;35:*.m4v=00;35:*.mp4v=00;35:*.vob=00;35:*.qt=00;35:*.nuv=00;35:*.wmv=00;35:*.asf=00;35:*.rm=00;35:*.rmvb=00;35:*.flc=00;35:*.avi=00;35:*.fli=00;35:*.gl=00;35:*.dl=00;35:*.xcf=00;35:*.xwd=00;35:*.yuv=00;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:';

export LS_COLORS

# Simple command prompt (because having a long path as part of the command prompt is annoying)
#PS1='$ '

# Advanced Command prompt (current path on 1 line, command prompt on next line)
PS1='\[\e[33m\]DIR: \w\n\[\e[1;32m\]\u$\[\e[00m\] '

# On serial terminals, the default size is 80x24
# Also, the lines do not wrap when you get to the end of the line (it just overwrites the current line).
# So, we will resize the window to 120x50. Make sure your terminal is also set to 120x50
if [ "$(tty)" == "/dev/ttySC0" ] ; then
  stty cols 120
  stty rows 50
fi

Profile for Buildroot (busybox)

alias ls='ls --color=auto -p --group-directories-first'
alias l='ls -CF'
alias la='ls -Ap'
alias ll='ls -Alp'
alias lll='ls -lph'

# Default bash colors, but not bold (because sometimes bold makes it hard to see in some terminals)
#------------------------LS_COLORS='no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:do=00;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=00;32'

export LS_COLORS

# Simple command prompt (because having a long path as part of the command prompt is annoying)
#PS1='$ '

# Advanced Command prompt (current path on 1 line, command prompt on next line)
PS1='\[\e[33m\]DIR: \w\n\[\e[1;32m\]\u$\[\e[00m\] '

# On serial terminals, the default size is 80x24
# Also, the lines do not wrap when you get to the end of the line (it just overwrites the current line).
# So, we will resize the window to 120x50. Make sure your terminal is also set to 120x50
if [ "$(tty)" == "/dev/ttySC0" ] ; then
  stty cols 120
  stty rows 50
fi

Clone this wiki locally