mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
# ~/.bashrc: executed by bash(1) for non-login shells.
|
|
|
|
# Note: PS1 and umask are already set in /etc/profile. You should not
|
|
# need this unless you want different defaults for root.
|
|
PS1='\u@\h:\w# '
|
|
# umask 022
|
|
|
|
# You may uncomment the following lines if you want `ls' to be colorized:
|
|
export LS_OPTIONS='--color=auto'
|
|
alias ls='ls $LS_OPTIONS'
|
|
alias ll='ls $LS_OPTIONS -l'
|
|
|
|
# Save history in realtime
|
|
shopt -s histappend
|
|
PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
|
|
|
|
export EDITOR="/bin/nano"
|
|
export BOOTLOADER_PATH="/mnt/p1"
|
|
export SLPART_PATH="/mnt/p2" # Synologic partition
|
|
export CACHE_PATH="/mnt/p3"
|
|
export DSMROOT_PATH="/mnt/dsmroot"
|
|
export PATH="${PATH}:/opt/arpl"
|
|
|
|
if [ -f ${BOOTLOADER_PATH}/.locale ]; then
|
|
export LANG="`cat ${BOOTLOADER_PATH}/.locale`"
|
|
fi
|
|
|
|
if [ -d /opt/arpl/lang ]; then
|
|
for F in "`ls /opt/arpl/lang/*.mo`"
|
|
do
|
|
install "${F}" "/usr/share/locale/$(basename $F .mo)/LC_MESSAGES/arpl.mo"
|
|
done
|
|
fi
|
|
|
|
if [ ! -f ${HOME}/.initialized ]; then
|
|
touch ${HOME}/.initialized
|
|
/opt/arpl/init.sh
|
|
fi
|
|
cd /opt/arpl
|
|
if tty | grep -q "/dev/pts" && [ -z "${SSH_TTY}" ]; then
|
|
/opt/arpl/menu.sh
|
|
exit
|
|
fi
|