From 38caead28d02b844046a4bad58e01397dcb68607 Mon Sep 17 00:00:00 2001 From: Peter Steenbergen Date: Fri, 25 Oct 2019 12:26:53 +0200 Subject: [PATCH] MycroftOS: Addition of BASH profile scripts --- buildroot-external/rootfs-overlay/.bash_profile | 6 ++++++ buildroot-external/rootfs-overlay/.bashrc | 5 +++++ buildroot-external/rootfs-overlay/.profile | 6 ++++++ .../rootfs-overlay/home/mycroft/.bash_profile | 6 ++++++ buildroot-external/rootfs-overlay/home/mycroft/.bashrc | 5 +++++ buildroot-external/rootfs-overlay/home/mycroft/.profile | 6 ++++++ buildroot-external/rootfs-overlay/root/.bash_profile | 6 ++++++ buildroot-external/rootfs-overlay/root/.bashrc | 7 +++++++ buildroot-external/rootfs-overlay/root/.profile | 6 ++++++ 9 files changed, 53 insertions(+) create mode 100644 buildroot-external/rootfs-overlay/.bash_profile create mode 100644 buildroot-external/rootfs-overlay/.bashrc create mode 100644 buildroot-external/rootfs-overlay/.profile create mode 100644 buildroot-external/rootfs-overlay/home/mycroft/.bash_profile create mode 100644 buildroot-external/rootfs-overlay/home/mycroft/.bashrc create mode 100644 buildroot-external/rootfs-overlay/home/mycroft/.profile create mode 100644 buildroot-external/rootfs-overlay/root/.bash_profile create mode 100644 buildroot-external/rootfs-overlay/root/.bashrc create mode 100644 buildroot-external/rootfs-overlay/root/.profile diff --git a/buildroot-external/rootfs-overlay/.bash_profile b/buildroot-external/rootfs-overlay/.bash_profile new file mode 100644 index 00000000..49c25bda --- /dev/null +++ b/buildroot-external/rootfs-overlay/.bash_profile @@ -0,0 +1,6 @@ +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi diff --git a/buildroot-external/rootfs-overlay/.bashrc b/buildroot-external/rootfs-overlay/.bashrc new file mode 100644 index 00000000..bfa82949 --- /dev/null +++ b/buildroot-external/rootfs-overlay/.bashrc @@ -0,0 +1,5 @@ +export TERM=xterm-xfree86 + +PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \$\[\033[00m\] ' + +export NODE_PATH=/usr/lib/node_modules diff --git a/buildroot-external/rootfs-overlay/.profile b/buildroot-external/rootfs-overlay/.profile new file mode 100644 index 00000000..49c25bda --- /dev/null +++ b/buildroot-external/rootfs-overlay/.profile @@ -0,0 +1,6 @@ +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi diff --git a/buildroot-external/rootfs-overlay/home/mycroft/.bash_profile b/buildroot-external/rootfs-overlay/home/mycroft/.bash_profile new file mode 100644 index 00000000..49c25bda --- /dev/null +++ b/buildroot-external/rootfs-overlay/home/mycroft/.bash_profile @@ -0,0 +1,6 @@ +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi diff --git a/buildroot-external/rootfs-overlay/home/mycroft/.bashrc b/buildroot-external/rootfs-overlay/home/mycroft/.bashrc new file mode 100644 index 00000000..bfa82949 --- /dev/null +++ b/buildroot-external/rootfs-overlay/home/mycroft/.bashrc @@ -0,0 +1,5 @@ +export TERM=xterm-xfree86 + +PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \$\[\033[00m\] ' + +export NODE_PATH=/usr/lib/node_modules diff --git a/buildroot-external/rootfs-overlay/home/mycroft/.profile b/buildroot-external/rootfs-overlay/home/mycroft/.profile new file mode 100644 index 00000000..49c25bda --- /dev/null +++ b/buildroot-external/rootfs-overlay/home/mycroft/.profile @@ -0,0 +1,6 @@ +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi diff --git a/buildroot-external/rootfs-overlay/root/.bash_profile b/buildroot-external/rootfs-overlay/root/.bash_profile new file mode 100644 index 00000000..49c25bda --- /dev/null +++ b/buildroot-external/rootfs-overlay/root/.bash_profile @@ -0,0 +1,6 @@ +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi diff --git a/buildroot-external/rootfs-overlay/root/.bashrc b/buildroot-external/rootfs-overlay/root/.bashrc new file mode 100644 index 00000000..2b1fe763 --- /dev/null +++ b/buildroot-external/rootfs-overlay/root/.bashrc @@ -0,0 +1,7 @@ +export TERM=xterm-xfree86 + +PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \$\[\033[00m\] ' + +export NODE_PATH=/usr/lib/node_modules +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" diff --git a/buildroot-external/rootfs-overlay/root/.profile b/buildroot-external/rootfs-overlay/root/.profile new file mode 100644 index 00000000..49c25bda --- /dev/null +++ b/buildroot-external/rootfs-overlay/root/.profile @@ -0,0 +1,6 @@ +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi