improves home default configuration

This commit is contained in:
JOLIMAITRE Matthieu 2024-03-07 22:59:59 +01:00
parent dd4d936974
commit babc91e50f
7 changed files with 479 additions and 22 deletions

View file

@ -1,8 +1,10 @@
# :oh-my-zsh
# oh-my-zsh
# note : C'est un programme qui sert à moder le shell.
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(
git
zsh-autosuggestions
@ -17,24 +19,10 @@ ZSH_AUTOSUGGEST_STRATEGY=(completion history)
ZSH_AUTOSUGGEST_USE_ASYNC="true"
# :opam configuration
# opam configuration
[[ ! -r /home/user/.opam/opam-init/init.zsh ]] || source /home/user/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
# :nnn
n ()
{
if [[ "${NNNLVL:-0}" -ge 1 ]]; then
echo "nnn is already running"
return
fi
export NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd"
\nnn "$@"
if [ -f "$NNN_TMPFILE" ]; then
. "$NNN_TMPFILE"
rm -f "$NNN_TMPFILE" > /dev/null
fi
}
# user profile
# profil utilisateur
# note : fichier contenant le profil de l'utilisateur.
source ~/.profile