diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-02-19 11:08:02 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-02-19 11:08:02 +0100 |
| commit | 2db1800f29d09300a914dde08ffa41a33e18b343 (patch) | |
| tree | a6f11ecef92bd19ad8d51ce16799139b10d8bca6 | |
| parent | bc791b216392a2c70721d6a33817b720884e4e31 (diff) | |
| download | dotfiles-2db1800f29d09300a914dde08ffa41a33e18b343.tar.gz dotfiles-2db1800f29d09300a914dde08ffa41a33e18b343.zip | |
Add minimalistic .bashrc file for dev environments
Just some useful defaults for special development environments such as
my Starfive VisionFive2 board.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
| -rw-r--r-- | .bashrc.vf2 | 38 |
1 files changed, 38 insertions, 0 deletions
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 |
