Skip to content

Commit

Permalink
added default 'bashrc'
Browse files Browse the repository at this point in the history
  • Loading branch information
accetto committed Nov 19, 2023
1 parent 1dfb8d9 commit bb9ad74
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile.xfce.20-04
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ ENV \

COPY ./src/xfce-startup "${STARTUPDIR}"/
COPY ./src/tests "${HOME}"/tests/
COPY ./src/home "${HOME}"/

COPY ./xfce/src/home/config "${HOME}"/.config/
COPY ./xfce/src/home/Desktop "${HOME}"/Desktop/
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.xfce.22-04
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ ENV \

COPY ./src/xfce-startup "${STARTUPDIR}"/
COPY ./src/tests "${HOME}"/tests/
COPY ./src/home "${HOME}"/

COPY ./xfce/src/home/config "${HOME}"/.config/
COPY ./xfce/src/home/Desktop "${HOME}"/Desktop/
Expand Down
18 changes: 18 additions & 0 deletions docker/src/home/.bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
### some examples of custom aliases

alias ll="ls -l"

### clear terminal window
alias cls='printf "\033c"'

### change terminal prompt text
fn_ps1() {
if [ $# -gt 0 ] ; then
### given value in bold green
PS1="\[\033[01;32m\]$1\[\033[00m\]> "
else
### basename of the current working directory in bold blue
PS1='\[\033[01;34m\]\W\[\033[00m\]> '
fi
}
alias ps1='fn_ps1'

0 comments on commit bb9ad74

Please sign in to comment.