Compare commits
28 Commits
22d0c9e391
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| f97bedaaa3 | |||
| 3cedd9e5b9 | |||
| 2a78e46d8f | |||
| 9d91d4023b | |||
| 4e8424f256 | |||
| a7c8b8e976 | |||
| b176720e24 | |||
| 26ec610ab6 | |||
| 7404e1b1ba | |||
| 494e6962e3 | |||
| 683d92aa25 | |||
| 4cf79f093f | |||
| ab60824b0c | |||
| 029a68eb4c | |||
| 5d749f744b | |||
| caa3942adc | |||
| 12633c228e | |||
| b80c60d072 | |||
| 70c7f85a38 | |||
| 000bd80364 | |||
| 23e876558d | |||
| b9b0e2512d | |||
| 10ce820874 | |||
| 7902a05997 | |||
| 00e3e3484c | |||
| 740741bc6f | |||
| 74dd5ba04e | |||
| de65fead4f |
21
README.md
Normal file
21
README.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# How to use this repo
|
||||||
|
|
||||||
|
## Install [chezmoi](https://www.chezmoi.io/)
|
||||||
|
|
||||||
|
```
|
||||||
|
yay -Sy chezmoi
|
||||||
|
```
|
||||||
|
|
||||||
|
## Set up chezmoi on the computer
|
||||||
|
|
||||||
|
```
|
||||||
|
chezmoi init git.jefflance.me/jeff/chezmoi
|
||||||
|
```
|
||||||
|
|
||||||
|
## Apply chezmoi configuration
|
||||||
|
|
||||||
|
```
|
||||||
|
chezmoi apply
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
@@ -19,6 +19,7 @@ plugins=(
|
|||||||
['rust']='https://github.com/code-lever/asdf-rust.git'
|
['rust']='https://github.com/code-lever/asdf-rust.git'
|
||||||
['julia']='https://github.com/rkyleg/asdf-julia.git'
|
['julia']='https://github.com/rkyleg/asdf-julia.git'
|
||||||
['r']='https://github.com/asdf-community/asdf-r.git'
|
['r']='https://github.com/asdf-community/asdf-r.git'
|
||||||
|
['yarn']='https://github.com/twuni/asdf-yarn.git'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
1
home/dot_config/rofi/Manjaro.rasi
Normal file
1
home/dot_config/rofi/Manjaro.rasi
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/home/jeff/.config/rofi/launchers/type-3/style-6.rasi
|
||||||
@@ -50,7 +50,7 @@ alias yd='yt-dlp' # yt-dlp best download
|
|||||||
# Shortcuts
|
# Shortcuts
|
||||||
#
|
#
|
||||||
|
|
||||||
hash -d crs="${HOME}/cours" # cours
|
hash -d crs="${HOME}/Cours" # cours
|
||||||
hash -d doc="${HOME}/Documents" # documents
|
hash -d doc="${HOME}/Documents" # documents
|
||||||
hash -d dot="$(chezmoi source-path)" # dotfiles
|
hash -d dot="$(chezmoi source-path)" # dotfiles
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# modules-local/passwordstore/init.zsh
|
# modules-local/passwordstore/init.zsh
|
||||||
|
|
||||||
# === Passwordstore async pull ===
|
# === Passwordstore async pull ===
|
||||||
PASS_PULL_LOG="/tmp/passstore-pull.log"
|
PASS_PULL_LOG="/tmp/passstore-pull"
|
||||||
PASS_PULL_LOCK="/tmp/passstore-pull.lock"
|
PASS_PULL_LOCK="/tmp/passstore-pull.lock"
|
||||||
|
|
||||||
# Fonction pour lancer le pull async
|
# Fonction pour lancer le pull async
|
||||||
@@ -15,7 +15,7 @@ _passwordstore_async_pull() {
|
|||||||
cd "$PASSWORD_STORE_DIR" || exit
|
cd "$PASSWORD_STORE_DIR" || exit
|
||||||
# Vérifie la connectivité avant pull
|
# Vérifie la connectivité avant pull
|
||||||
if git ls-remote &>/dev/null; then
|
if git ls-remote &>/dev/null; then
|
||||||
git pull --ff-only &> "$PASS_PULL_LOG"
|
git pull --ff-only &> "$PASS_PULL_LOG_$(date +%Y%m%d:%H%M%S).log"
|
||||||
fi
|
fi
|
||||||
rm -f "$PASS_PULL_LOCK"
|
rm -f "$PASS_PULL_LOCK"
|
||||||
) & disown
|
) & disown
|
||||||
|
|||||||
Binary file not shown.
@@ -10,13 +10,25 @@ zmodule zsh-users/zsh-completions
|
|||||||
zmodule zsh-users/zsh-autosuggestions
|
zmodule zsh-users/zsh-autosuggestions
|
||||||
zmodule zsh-users/zsh-syntax-highlighting
|
zmodule zsh-users/zsh-syntax-highlighting
|
||||||
zmodule zsh-users/zsh-history-substring-search
|
zmodule zsh-users/zsh-history-substring-search
|
||||||
# zmodule completion
|
zmodule completion
|
||||||
|
|
||||||
|
zmodule ohmyzsh/ohmyzsh --root plugins/kitty
|
||||||
|
zmodule ohmyzsh/ohmyzsh --root plugins/starship
|
||||||
|
zmodule ohmyzsh/ohmyzsh --root plugins/sudo
|
||||||
|
zmodule ohmyzsh/ohmyzsh --root plugins/zoxide
|
||||||
|
zmodule ohmyzsh/ohmyzsh --root plugins/direnv
|
||||||
|
zmodule ohmyzsh/ohmyzsh --root plugins/colorize
|
||||||
|
zmodule ohmyzsh/ohmyzsh --root plugins/docker-compose
|
||||||
|
zmodule ohmyzsh/ohmyzsh --root plugins/colored-man-pages
|
||||||
|
zmodule ohmyzsh/ohmyzsh --root plugins/git
|
||||||
|
zmodule ohmyzsh/ohmyzsh --root plugins/man
|
||||||
|
zmodule ohmyzsh/ohmyzsh --root plugins/magic-enter
|
||||||
|
zmodule ohmyzsh/ohmyzsh --root plugins/per-directory-history
|
||||||
|
zmodule ohmyzsh/ohmyzsh --root plugins/qrcode
|
||||||
|
zmodule ohmyzsh/ohmyzsh --root plugins/mosh
|
||||||
|
|
||||||
zmodule buku -z
|
|
||||||
zmodule joke/zim-chezmoi
|
zmodule joke/zim-chezmoi
|
||||||
zmodule git
|
|
||||||
zmodule termtitle
|
|
||||||
zmodule archive
|
|
||||||
{{ if (eq .chezmoi.os "linux") -}}
|
{{ if (eq .chezmoi.os "linux") -}}
|
||||||
# Distribution aliases and functions.
|
# Distribution aliases and functions.
|
||||||
{{ if (eq .chezmoi.osRelease.id "manjaro") -}}
|
{{ if (eq .chezmoi.osRelease.id "manjaro") -}}
|
||||||
@@ -26,18 +38,17 @@ zmodule pacman
|
|||||||
{{ else if (eq .chezmoi.osRelease.id "debian" "ubuntu") -}}
|
{{ else if (eq .chezmoi.osRelease.id "debian" "ubuntu") -}}
|
||||||
zmodule debian
|
zmodule debian
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end -}}
|
||||||
|
|
||||||
zmodule sudo -z
|
zmodule termtitle
|
||||||
|
zmodule archive
|
||||||
zmodule utility
|
zmodule utility
|
||||||
zmodule fzf
|
zmodule fzf
|
||||||
zmodule jl-helper -z
|
|
||||||
zmodule magic-enter
|
|
||||||
zmodule git-info
|
zmodule git-info
|
||||||
zmodule steeef
|
zmodule passwordstore -z
|
||||||
# zmodule joke/zim-starship
|
zmodule buku -z
|
||||||
zmodule password -z
|
zmodule jl-helper -z
|
||||||
|
|
||||||
zstyle ':zim:module' skip 'prompt'
|
# zstyle ':zim:module' skip 'prompt'
|
||||||
|
|
||||||
# End configuration added by Zim install
|
# End configuration added by Zim install
|
||||||
|
|||||||
1
home/dot_zprofile
Normal file
1
home/dot_zprofile
Normal file
@@ -0,0 +1 @@
|
|||||||
|
[[ -f ~/.profile ]] && . ~/.profile
|
||||||
@@ -20,21 +20,25 @@ path=(~/bin ~/.local/bin $path[@])
|
|||||||
# >>> environment variables >>>
|
# >>> environment variables >>>
|
||||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||||
|
|
||||||
export XDG_CONFIG_HOME=$HOME/.config
|
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||||
|
|
||||||
# update path
|
# Update path
|
||||||
export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"
|
export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:${PATH}"
|
||||||
export GEM_HOME="$(${HOME}/.asdf/shims/gem env user_gemhome)"
|
export GEM_HOME="$(${HOME}/.asdf/shims/gem env user_gemhome)"
|
||||||
export PATH="$PATH:$GEM_HOME/bin"
|
export PATH="${GEM_HOME}/bin:${PATH}"
|
||||||
export PATH="$PATH:$(go env GOBIN):$(go env GOPATH)/bin"
|
export PATH="$(go env GOBIN):$(go env GOPATH)/bin:${PATH}"
|
||||||
[[ -d ${HOME}/.fuelup ]] && export PATH="$PATH:${HOME}/.fuelup/bin"
|
[[ -d ${HOME}/.fuelup ]] && export PATH="${HOME}/.fuelup/bin:${PATH}"
|
||||||
|
[[ $(command -v rofi) ]] && export PATH="${HOME}/.config/rofi/scripts:${PATH}"
|
||||||
|
|
||||||
# set default browser, editor and terminal
|
# Set default browser, editor, terminal and shell
|
||||||
export BROWSER=qutebrowser
|
export BROWSER=qutebrowser
|
||||||
export EDITOR=$([[ $(command -v nvim) ]] && echo nvim || echo vim)
|
export EDITOR=$( ( [[ $(command -v nvim) ]] && echo nvim ) || ( [[ $(command -v vim) ]] && echo vim ) || echo nano)
|
||||||
export TERMINAL=kitty
|
export TERMINAL=$( ( [[ $(command -v kitty) ]] && echo kitty ) || ( [[ $(command -v alacritty) ]] && echo alacritty ) || echo xterm)
|
||||||
|
export SHELL=/usr/bin/zsh
|
||||||
|
# to permit fcitx runs with kitty
|
||||||
|
export GLFW_IM_MODULE=ibus
|
||||||
|
|
||||||
# set fuzzy finder command to rg if installed
|
# Set fuzzy finder command to rg if installed
|
||||||
[[ $(command -v rg) ]] && export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
|
[[ $(command -v rg) ]] && export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
|
||||||
|
|
||||||
export PASSWORD_STORE_DIR="${HOME}/.password-store"
|
export PASSWORD_STORE_DIR="${HOME}/.password-store"
|
||||||
@@ -43,28 +47,7 @@ export ZK_NOTEBOOK_DIR="${HOME}/Notes"
|
|||||||
export OPENAI_API_KEY="$(pass _api_keys/openai_perso-2 2>/dev/null || echo ERROR)"
|
export OPENAI_API_KEY="$(pass _api_keys/openai_perso-2 2>/dev/null || echo ERROR)"
|
||||||
export IPINFO_API_KEY="$(pass _api_keys/ipinfo_perso-0 2>/dev/null || echo ERROR)"
|
export IPINFO_API_KEY="$(pass _api_keys/ipinfo_perso-0 2>/dev/null || echo ERROR)"
|
||||||
|
|
||||||
# Most pure GTK3 apps use wayland by default, but some,
|
# Set electron trash implementation if trash-cli installed
|
||||||
# such as Firefox, require the backend to be explicitly selected.
|
|
||||||
export MOZ_ENABLE_WAYLAND=1
|
|
||||||
export MOZ_DBUS_REMOTE=1
|
|
||||||
export GTK_CSD=0
|
|
||||||
|
|
||||||
# qt wayland
|
|
||||||
export QT_QPA_PLATFORM="wayland"
|
|
||||||
export QT_QPA_PLATFORMTHEME=qt5ct
|
|
||||||
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
|
|
||||||
|
|
||||||
#Java XWayland blank screens fix
|
|
||||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
||||||
|
|
||||||
# set default shell and terminal
|
|
||||||
export SHELL=/usr/bin/zsh
|
|
||||||
export TERMINAL_COMMAND=xdg-terminal-exec
|
|
||||||
|
|
||||||
# set ozone platform to wayland
|
|
||||||
export ELECTRON_OZONE_PLATFORM_HINT=wayland
|
|
||||||
|
|
||||||
# set electron trash implementation if trash-cli installed
|
|
||||||
[[ ( $(command -v code) && $(command -v trash) ) ]] && export ELECTRON_TRASH="trash"
|
[[ ( $(command -v code) && $(command -v trash) ) ]] && export ELECTRON_TRASH="trash"
|
||||||
|
|
||||||
# Disable hardware cursors. This might fix issues with
|
# Disable hardware cursors. This might fix issues with
|
||||||
@@ -78,13 +61,13 @@ fi
|
|||||||
export OPENCV_LOG_LEVEL=ERROR
|
export OPENCV_LOG_LEVEL=ERROR
|
||||||
# <<< environment variables <<<
|
# <<< environment variables <<<
|
||||||
|
|
||||||
# load profile
|
# Load profile
|
||||||
set -a
|
set -a
|
||||||
. "$HOME/.config/user-dirs.dirs"
|
. "${HOME}/.config/user-dirs.dirs"
|
||||||
set +a
|
set +a
|
||||||
|
|
||||||
if [ -n "$(ls "$HOME"/.config/profile.d 2>/dev/null)" ]; then
|
if [ -n "$(ls "${HOME}"/.config/profile.d 2>/dev/null)" ]; then
|
||||||
for f in "$HOME"/.config/profile.d/*; do
|
for f in "${HOME}"/.config/profile.d/*; do
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
. "$f"
|
. "$f"
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ WORDCHARS=${WORDCHARS//[\/]}
|
|||||||
# Zoxide configuration
|
# Zoxide configuration
|
||||||
ZOXIDE_CMD_OVERRIDE=cd
|
ZOXIDE_CMD_OVERRIDE=cd
|
||||||
|
|
||||||
|
SPACESHIP_PROMPT_ASYNC=false
|
||||||
|
|
||||||
# --------------------
|
# --------------------
|
||||||
# Module configuration
|
# Module configuration
|
||||||
# --------------------
|
# --------------------
|
||||||
@@ -64,6 +66,8 @@ ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
|
|||||||
#typeset -A ZSH_HIGHLIGHT_STYLES
|
#typeset -A ZSH_HIGHLIGHT_STYLES
|
||||||
#ZSH_HIGHLIGHT_STYLES[comment]='fg=10'
|
#ZSH_HIGHLIGHT_STYLES[comment]='fg=10'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ------------------
|
# ------------------
|
||||||
# Initialize modules
|
# Initialize modules
|
||||||
# ------------------
|
# ------------------
|
||||||
@@ -74,7 +78,9 @@ if [[ ${ZIM_HOME}/init.zsh -ot ${ZDOTDIR:-${HOME}}/.zimrc ]]; then
|
|||||||
fi
|
fi
|
||||||
source ${ZIM_HOME}/init.zsh
|
source ${ZIM_HOME}/init.zsh
|
||||||
|
|
||||||
autoload -Uz compinit && compinit -C
|
# autoload -Uz compinit && compinit -C
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
# Post-init module configuration
|
# Post-init module configuration
|
||||||
@@ -107,29 +113,29 @@ bindkey '^E' vi-end-of-line
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
# #
|
||||||
# zoxide
|
# # zoxide
|
||||||
#
|
# #
|
||||||
if (( $+commands[zoxide] )); then
|
# if (( $+commands[zoxide] )); then
|
||||||
eval "$(zoxide init --cmd ${ZOXIDE_CMD_OVERRIDE:-z} zsh)"
|
# eval "$(zoxide init --cmd ${ZOXIDE_CMD_OVERRIDE:-z} zsh)"
|
||||||
else
|
# else
|
||||||
echo '[zshrc] zoxide not found, please install it from https://github.com/ajeetdsouza/zoxide'
|
# echo '[zshrc] zoxide not found, please install it from https://github.com/ajeetdsouza/zoxide'
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# #
|
||||||
|
# # direnv
|
||||||
|
# #
|
||||||
|
# [[ -x $(command -v direnv) ]] && eval "$(direnv hook zsh)"
|
||||||
|
# setopt PROMPT_SUBST
|
||||||
#
|
#
|
||||||
# direnv
|
# show_virtual_env() {
|
||||||
#
|
# if [[ -n "$CONDA_DEFAULT_ENV" && -n "$DIRENV_DIR" ]]; then
|
||||||
[[ -x $(command -v direnv) ]] && eval "$(direnv hook zsh)"
|
# echo "($(basename $CONDA_DEFAULT_ENV))"
|
||||||
setopt PROMPT_SUBST
|
# fi
|
||||||
|
# }
|
||||||
show_virtual_env() {
|
# PS1='$(show_virtual_env)'$PS1
|
||||||
if [[ -n "$CONDA_DEFAULT_ENV" && -n "$DIRENV_DIR" ]]; then
|
|
||||||
echo "($(basename $CONDA_DEFAULT_ENV))"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
PS1='$(show_virtual_env)'$PS1
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -162,20 +168,26 @@ if [ -z "$TMUX" ]; then
|
|||||||
ssh-add 2>/dev/null
|
ssh-add 2>/dev/null
|
||||||
|
|
||||||
# start tmux
|
# start tmux
|
||||||
#
|
|
||||||
# passwordstore
|
|
||||||
#
|
|
||||||
if [[ $(curl -s -w "%{http_code}\n" -L "https://git.jefflance.me/" -o /dev/null) = "200" ]]; then
|
|
||||||
echo -ne "\npasswordstore: " && pass git pull
|
|
||||||
else
|
|
||||||
echo -ne "\npasswordstore: serveur hors ligne"
|
|
||||||
fi
|
|
||||||
tmux attach
|
tmux attach
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# #
|
||||||
|
# # passwordstore
|
||||||
|
# #
|
||||||
|
# if [[ $(curl -s -w "%{http_code}\n" -L "https://git.jefflance.me/" -o /dev/null) = "200" ]]; then
|
||||||
|
# echo -ne "\npasswordstore: " && pass git pull
|
||||||
|
# else
|
||||||
|
# echo -ne "\npasswordstore: serveur hors ligne"
|
||||||
|
# fi
|
||||||
|
# tmux attach
|
||||||
|
# fi
|
||||||
|
# fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# gpg-agent
|
# gpg-agent
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user