Skip to content

Instantly share code, notes, and snippets.

@Vac1911
Last active March 3, 2021 18:40
Show Gist options
  • Save Vac1911/fc42e804a9ce25f7b3b56b09067e1502 to your computer and use it in GitHub Desktop.
Save Vac1911/fc42e804a9ce25f7b3b56b09067e1502 to your computer and use it in GitHub Desktop.
Using this as a hack to create a .bashrc in container instances. See comment for dockerfile code.
# .bashrc
# show full path display
PS1='\u@\h [\w]# '
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias ll='ls -lah'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
@Vac1911
Copy link
Author

Vac1911 commented Mar 3, 2021

Using this as a hack to create a .bashrc in container instances

RUN curl https://gist.githubusercontent.com/Vac1911/fc42e804a9ce25f7b3b56b09067e1502/raw/f7be18ba75f2feffb342eb5f3b49296fdbcacf91/.bashrc >> .bashrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment