Compare commits
33 Commits
3393198919
...
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 | |||
| 22d0c9e391 | |||
| 48dcc3cb3c | |||
| 8a4bd87007 | |||
| b495e4e935 | |||
| 843d5b0c84 |
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
|
||||||
|
|
||||||
|
|||||||
27
home/dot_zim/modules/passwordstore/init.zsh
Normal file
27
home/dot_zim/modules/passwordstore/init.zsh
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# modules-local/passwordstore/init.zsh
|
||||||
|
|
||||||
|
# === Passwordstore async pull ===
|
||||||
|
PASS_PULL_LOG="/tmp/passstore-pull"
|
||||||
|
PASS_PULL_LOCK="/tmp/passstore-pull.lock"
|
||||||
|
|
||||||
|
# Fonction pour lancer le pull async
|
||||||
|
_passwordstore_async_pull() {
|
||||||
|
# Si le répertoire existe et qu'aucun pull n'est en cours
|
||||||
|
[[ -d "$PASSWORD_STORE_DIR" ]] || return
|
||||||
|
if [[ ! -f "$PASS_PULL_LOCK" ]]; then
|
||||||
|
# Création d'un lock pour éviter les pulls simultanés
|
||||||
|
touch "$PASS_PULL_LOCK"
|
||||||
|
(
|
||||||
|
cd "$PASSWORD_STORE_DIR" || exit
|
||||||
|
# Vérifie la connectivité avant pull
|
||||||
|
if git ls-remote &>/dev/null; then
|
||||||
|
git pull --ff-only &> "$PASS_PULL_LOG_$(date +%Y%m%d:%H%M%S).log"
|
||||||
|
fi
|
||||||
|
rm -f "$PASS_PULL_LOCK"
|
||||||
|
) & disown
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Lancer au démarrage
|
||||||
|
_passwordstore_async_pull
|
||||||
|
|
||||||
@@ -3,39 +3,32 @@
|
|||||||
# Modules
|
# Modules
|
||||||
# -------
|
# -------
|
||||||
|
|
||||||
# Environment
|
|
||||||
#
|
|
||||||
# Sets sane Zsh built-in environment options.
|
|
||||||
zmodule environment
|
zmodule environment
|
||||||
# Applies correct bindkeys for input events.
|
|
||||||
zmodule input
|
zmodule input
|
||||||
|
|
||||||
# Completion
|
|
||||||
#
|
|
||||||
# Additional completion definitions for Zsh.
|
|
||||||
zmodule zsh-users/zsh-completions
|
zmodule zsh-users/zsh-completions
|
||||||
# Enables and configures smart and extensive tab completion.
|
|
||||||
# completion must be sourced after zsh-users/zsh-completions
|
|
||||||
zmodule completion
|
|
||||||
# Fish-like autosuggestions for Zsh.
|
|
||||||
zmodule zsh-users/zsh-autosuggestions
|
zmodule zsh-users/zsh-autosuggestions
|
||||||
|
zmodule zsh-users/zsh-syntax-highlighting
|
||||||
|
zmodule zsh-users/zsh-history-substring-search
|
||||||
|
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
|
||||||
|
|
||||||
# Productivity
|
|
||||||
#
|
|
||||||
# Alacritty completions modules
|
|
||||||
zmodule alacritty -z
|
|
||||||
# Sets up asdf, with auto install and optimized usage of the direnv plugin.
|
|
||||||
#zmodule asdf
|
|
||||||
# Buku completions modules
|
|
||||||
zmodule buku -z
|
|
||||||
# chezmoi
|
|
||||||
zmodule joke/zim-chezmoi
|
zmodule joke/zim-chezmoi
|
||||||
# Provides handy git aliases and functions.
|
|
||||||
zmodule git
|
|
||||||
# Sets a custom terminal title.
|
|
||||||
zmodule termtitle
|
|
||||||
# Provides archive and unarchive functions for easy archive manipulation.
|
|
||||||
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") -}}
|
||||||
@@ -45,36 +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 -}}
|
||||||
# sudo module
|
|
||||||
zmodule sudo -z
|
zmodule termtitle
|
||||||
# Utility aliases and functions. Adds colour to ls, grep and less.
|
zmodule archive
|
||||||
zmodule utility
|
zmodule utility
|
||||||
# exa
|
|
||||||
## zmodule exa
|
|
||||||
# fzf
|
|
||||||
zmodule fzf
|
zmodule fzf
|
||||||
# Personal aliases
|
|
||||||
zmodule jl-helper -z
|
|
||||||
# magic enter feature from subnixr's minimal prompt theme
|
|
||||||
zmodule magic-enter
|
|
||||||
|
|
||||||
# Syntx highlighting
|
|
||||||
#
|
|
||||||
# Fish-like syntax highlighting for Zsh.
|
|
||||||
# zsh-users/zsh-syntax-highlighting must be sourced after completion
|
|
||||||
zmodule zsh-users/zsh-syntax-highlighting
|
|
||||||
# Fish-like history search (up arrow) for Zsh.
|
|
||||||
# zsh-users/zsh-history-substring-search must be sourced after zsh-users/zsh-syntax-highlighting
|
|
||||||
zmodule zsh-users/zsh-history-substring-search
|
|
||||||
|
|
||||||
# Prompt
|
|
||||||
#
|
|
||||||
# Exposes git repository status information to prompts.
|
|
||||||
zmodule git-info
|
zmodule git-info
|
||||||
# A customizable version of steeef's prompt theme.
|
zmodule passwordstore -z
|
||||||
zmodule steeef
|
zmodule buku -z
|
||||||
# starship
|
zmodule jl-helper -z
|
||||||
zmodule joke/zim-starship
|
|
||||||
|
# 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
|
||||||
|
|||||||
107
home/dot_zshrc
107
home/dot_zshrc
@@ -33,55 +33,32 @@ WORDCHARS=${WORDCHARS//[\/]}
|
|||||||
# Zoxide configuration
|
# Zoxide configuration
|
||||||
ZOXIDE_CMD_OVERRIDE=cd
|
ZOXIDE_CMD_OVERRIDE=cd
|
||||||
|
|
||||||
|
SPACESHIP_PROMPT_ASYNC=false
|
||||||
|
|
||||||
# --------------------
|
# --------------------
|
||||||
# Module configuration
|
# Module configuration
|
||||||
# --------------------
|
# --------------------
|
||||||
|
|
||||||
#
|
zstyle ':zim:module' skip 'prompt'
|
||||||
# completion
|
|
||||||
#
|
|
||||||
|
|
||||||
# Set a custom path for the completion dump file.
|
# Set a custom path for the completion dump file.
|
||||||
# If none is provided, the default ${ZDOTDIR:-${HOME}}/.zcompdump is used.
|
# If none is provided, the default ${ZDOTDIR:-${HOME}}/.zcompdump is used.
|
||||||
#zstyle ':zim:completion' dumpfile "${ZDOTDIR:-${HOME}}/.zcompdump-${ZSH_VERSION}"
|
#zstyle ':zim:completion' dumpfile "${ZDOTDIR:-${HOME}}/.zcompdump-${ZSH_VERSION}"
|
||||||
|
|
||||||
#
|
|
||||||
# git
|
|
||||||
#
|
|
||||||
|
|
||||||
# Set a custom prefix for the generated aliases. The default prefix is 'G'.
|
# Set a custom prefix for the generated aliases. The default prefix is 'G'.
|
||||||
#zstyle ':zim:git' aliases-prefix 'g'
|
#zstyle ':zim:git' aliases-prefix 'g'
|
||||||
|
|
||||||
#
|
|
||||||
# input
|
|
||||||
#
|
|
||||||
|
|
||||||
# Append `../` to your input for each `.` you type after an initial `..`
|
# Append `../` to your input for each `.` you type after an initial `..`
|
||||||
zstyle ':zim:input' double-dot-expand yes
|
zstyle ':zim:input' double-dot-expand yes
|
||||||
|
|
||||||
#
|
|
||||||
# termtitle
|
|
||||||
#
|
|
||||||
|
|
||||||
# Set a custom terminal title format using prompt expansion escape sequences.
|
# Set a custom terminal title format using prompt expansion escape sequences.
|
||||||
# See http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Simple-Prompt-Escapes
|
# See http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Simple-Prompt-Escapes
|
||||||
# If none is provided, the default '%n@%m: %~' is used.
|
# If none is provided, the default '%n@%m: %~' is used.
|
||||||
#zstyle ':zim:termtitle' format '%1~'
|
#zstyle ':zim:termtitle' format '%1~'
|
||||||
|
|
||||||
#
|
|
||||||
# zsh-autosuggestions
|
|
||||||
#
|
|
||||||
|
|
||||||
# Customize the style that the suggestions are shown with.
|
# Customize the style that the suggestions are shown with.
|
||||||
# See https://github.com/zsh-users/zsh-autosuggestions/blob/master/README.md#suggestion-highlight-style
|
# See https://github.com/zsh-users/zsh-autosuggestions/blob/master/README.md#suggestion-highlight-style
|
||||||
#ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=10'
|
#ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=10'
|
||||||
|
|
||||||
#
|
|
||||||
# zsh-syntax-highlighting
|
|
||||||
#
|
|
||||||
|
|
||||||
# Set what highlighters will be used.
|
|
||||||
# See https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters.md
|
|
||||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
|
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
|
||||||
|
|
||||||
# Customize the main highlighter styles.
|
# Customize the main highlighter styles.
|
||||||
@@ -89,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
|
||||||
# ------------------
|
# ------------------
|
||||||
@@ -99,6 +78,10 @@ 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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
# Post-init module configuration
|
# Post-init module configuration
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
@@ -125,34 +108,34 @@ bindkey -M vicmd 'j' history-substring-search-down
|
|||||||
|
|
||||||
# Bind ctrl+a and ctrl+e
|
# Bind ctrl+a and ctrl+e
|
||||||
bindkey '^A' vi-beginning-of-line
|
bindkey '^A' vi-beginning-of-line
|
||||||
bindkey '^E' vi-end-of-line
|
bindkey '^E' vi-end-of-line
|
||||||
# }}} End configuration added by Zim install
|
# }}} End configuration added by Zim install
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
# #
|
||||||
# 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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -191,29 +174,17 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# ocaml
|
|
||||||
#
|
|
||||||
# [[ ! -r '/home/jeff/.opam/opam-init/init.zsh' ]] || source '/home/jeff/.opam/opam-init/init.zsh' > /dev/null 2> /dev/null
|
|
||||||
# test -r /home/jeff/.opam/opam-init/init.zsh && . /home/jeff/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true
|
|
||||||
# eval "$(asdf exec opam env)"
|
|
||||||
|
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# # conda
|
# # passwordstore
|
||||||
# #
|
# #
|
||||||
# # !! Contents within this block are managed by 'conda init' !!
|
# if [[ $(curl -s -w "%{http_code}\n" -L "https://git.jefflance.me/" -o /dev/null) = "200" ]]; then
|
||||||
# __conda_setup="$('/home/jeff/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
|
# echo -ne "\npasswordstore: " && pass git pull
|
||||||
# if [ $? -eq 0 ]; then
|
|
||||||
# eval "$__conda_setup"
|
|
||||||
# else
|
# else
|
||||||
# if [ -f "/home/jeff/miniconda3/etc/profile.d/conda.sh" ]; then
|
# echo -ne "\npasswordstore: serveur hors ligne"
|
||||||
# . "/home/jeff/miniconda3/etc/profile.d/conda.sh"
|
# fi
|
||||||
# else
|
# tmux attach
|
||||||
# export PATH="/home/jeff/miniconda3/bin:$PATH"
|
|
||||||
# fi
|
# fi
|
||||||
# fi
|
# fi
|
||||||
# unset __conda_setup
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -226,11 +197,3 @@ gpgconf --launch gpg-agent
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# 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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user