improves home default configuration
This commit is contained in:
parent
dd4d936974
commit
babc91e50f
7 changed files with 479 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue