reimplement config dotfiles with templates
This commit is contained in:
3
links/tty/autologin.conf
Normal file
3
links/tty/autologin.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin root %I $TERM
|
||||
6
links/tty/bash.bashaliases
Normal file
6
links/tty/bash.bashaliases
Normal file
@@ -0,0 +1,6 @@
|
||||
ll=ls --color=auto -lha
|
||||
grep=grep --color=auto
|
||||
ip=ip -color=auto
|
||||
chromium=chromium --no-sandbox
|
||||
code=code --no-sandbox
|
||||
rf=rofi -show run
|
||||
15
links/tty/bash.bashexports
Normal file
15
links/tty/bash.bashexports
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
export BROWSER="/usr/bin/firefox"
|
||||
export EDITOR="nvim"
|
||||
export TERMINAL="rxvt-unicode"
|
||||
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
export XDG_STATE_HOME="$HOME/.local/state"
|
||||
|
||||
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
|
||||
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
||||
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
||||
export WINEPREFIX="$XDG_DATA_HOME/wine"
|
||||
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
|
||||
26
links/tty/inputrc
Normal file
26
links/tty/inputrc
Normal file
@@ -0,0 +1,26 @@
|
||||
set bell-style none
|
||||
set meta-flag on
|
||||
set input-meta on
|
||||
set convert-meta off
|
||||
set output-meta on
|
||||
set colored-stats on
|
||||
set completion-ignore-case on
|
||||
set editing-mode emacs
|
||||
|
||||
"\e[A":history-search-backward
|
||||
"\e[B":history-search-forward
|
||||
|
||||
$if term=linux
|
||||
"\e[1~": beginning-of-line
|
||||
"\e[4~": end-of-line
|
||||
$endif
|
||||
|
||||
$if term=xterm
|
||||
"\e[1~": beginning-of-line
|
||||
"\e[4~": end-of-line
|
||||
$endif
|
||||
|
||||
$if term=rxvt-unicode
|
||||
"\e[7~": beginning-of-line
|
||||
"\e[8~": end-of-line
|
||||
$endif
|
||||
2
links/tty/issue
Normal file
2
links/tty/issue
Normal file
@@ -0,0 +1,2 @@
|
||||
Arch Linux \r (\l)
|
||||
\e{blue}IP address:\e{reset} \4
|
||||
Reference in New Issue
Block a user