From 2db1800f29d09300a914dde08ffa41a33e18b343 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 19 Feb 2026 11:08:02 +0100 Subject: Add minimalistic .bashrc file for dev environments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just some useful defaults for special development environments such as my Starfive VisionFive2 board. Signed-off-by: Miquel Sabaté Solà --- .bashrc.vf2 | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .bashrc.vf2 (limited to '.bashrc.vf2') diff --git a/.bashrc.vf2 b/.bashrc.vf2 new file mode 100644 index 0000000..a96e7cd --- /dev/null +++ b/.bashrc.vf2 @@ -0,0 +1,38 @@ +## +# .bashrc file to be used on my Starfive VisionFive2 board. This is a +# minimalistic setup but it already does a couple of nice-to-have thingies like +# a prompt that I like and sets up the editor to my hacky 'e' one. + +export EDITOR=e +export VISUAL=e + +# We want a full-fledged 256-color terminal. +TERM=xterm-256color + +# Setup the prompt command for terminals that don't touch it by themselves +# (e.g. alacritty). +PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"' + +# Set the LESS and the PAGER environment variables. +export LESS="FSRX" +export PAGER=less + +# Setting up PS1. +export PS1='\$ ' + +# Add the `bin` dir to the path if possible. See: +# https://github.com/mssola/dotfiles. +if [ -d "$HOME/bin" ]; then + export PATH=$HOME/bin:$PATH +fi + +## +# RISC-V + +# Setting this value as expected by the Linux Kernel when building it. +export ARCH=riscv + +# If this is not a RISC-V machine, set up cross compilation for it. +if [ "$(uname -m)" != "riscv64" ]; then + export CROSS_COMPILE=riscv64-suse-linux- +fi \ No newline at end of file -- cgit v1.2.3