aboutsummaryrefslogtreecommitdiff
path: root/.bashrc.vf2
blob: bd04ee1416ed2ea2484234f78a7d4a30dae66c85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
##
# .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