reimplement config dotfiles with templates
This commit is contained in:
64
links/tty/bash.bashrc
Normal file
64
links/tty/bash.bashrc
Normal file
@@ -0,0 +1,64 @@
|
||||
#
|
||||
# /etc/bash.bashrc
|
||||
#
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
[[ $DISPLAY ]] && shopt -s checkwinsize
|
||||
|
||||
PS1='[\u@\h \W]\$ '
|
||||
|
||||
case ${TERM} in
|
||||
Eterm*|alacritty*|aterm*|foot*|gnome*|konsole*|kterm*|putty*|rxvt*|tmux*|xterm*)
|
||||
PROMPT_COMMAND+=('printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"')
|
||||
|
||||
;;
|
||||
screen*)
|
||||
PROMPT_COMMAND+=('printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"')
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ -r /usr/share/bash-completion/bash_completion ]]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
fi
|
||||
|
||||
#if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
|
||||
# exec Hyprland --i-am-really-stupid
|
||||
#fi
|
||||
|
||||
. /usr/share/git/git-prompt.sh
|
||||
# afficher le status de la branche locale (<, >, =)
|
||||
export GIT_PS1_SHOWUPSTREAM=1
|
||||
# affiche (*) en cas de modifications en zone de travail ou de cache
|
||||
export GIT_PS1_SHOWDIRTYSTATE=1
|
||||
# affiche (%) en cas de nouveaux fichiers
|
||||
export GIT_PS1_SHOWUNTRACKEDFILES=1
|
||||
# affiche ($) lorsqu’au moins une zone de stash existe
|
||||
export GIT_PS1_SHOWSTASHSTATE=1
|
||||
|
||||
export PS1="\[\e[1;34m\]\u\[\e[0;33m\]@\[\e[0;36m\]\h\[\e[0;33m\] \[\e[0;35m\]\w\[\e[0;00m\]\$(__git_ps1)"
|
||||
if [ "$(id -u)" != 0 ]; then
|
||||
PS1=$PS1" \$ "
|
||||
else
|
||||
PS1=$PS1" # "
|
||||
fi
|
||||
|
||||
# You may comment the following lines if you won't `ls' to be colorized:
|
||||
eval "$(dircolors)"
|
||||
umask=002
|
||||
|
||||
while read -r line
|
||||
do
|
||||
alias "$line"
|
||||
done < /etc/bash.bashaliases
|
||||
|
||||
source "/etc/bash.bashexports"
|
||||
|
||||
PATH=/games:/usr/local/sbin:/usr/local/bin:/usr/bin
|
||||
|
||||
# History config
|
||||
HISTSIZE=1000
|
||||
HISTTIMEFORMAT="%F %T "
|
||||
|
||||
neofetch
|
||||
Reference in New Issue
Block a user