Dev #2
+6
-3
@@ -39,9 +39,12 @@ if [ -z "${BASH_CONFIG_DIR}" ]; then
|
|||||||
BASH_CONFIG_DIR=$(get_script_dir)
|
BASH_CONFIG_DIR=$(get_script_dir)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "${BASH_CONFIG_DIR}"/profile ]; then source "${BASH_CONFIG_DIR}"/profile; fi
|
# Source some helpers functions
|
||||||
if [ -d "${BASH_CONFIG_DIR}"/profile ]; then for file in "${BASH_CONFIG_DIR}"/profile/*; do source "$file"; done; fi
|
source "${BASH_CONFIG_DIR}/_helpers.bash"
|
||||||
if [ -d "${BASH_CONFIG_DIR}"/profile.d ]; then for file in "${BASH_CONFIG_DIR}"/profile.d/*; do source "$file"; done; fi
|
|
||||||
|
_source_file_if_exists "${BASH_CONFIG_DIR}/profile"
|
||||||
|
_source_dir_files "${BASH_CONFIG_DIR}/profile"
|
||||||
|
_source_dir_files "${BASH_CONFIG_DIR}/profile.d"
|
||||||
|
|
||||||
# This file is sourced by bash for login shells. The following line
|
# This file is sourced by bash for login shells. The following line
|
||||||
# runs your .bashrc and is recommended by the bash info pages.
|
# runs your .bashrc and is recommended by the bash info pages.
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Define prefered LANG
|
# Define prefered LANG
|
||||||
export LANG=fr_FR.utf8
|
export LANG=fr_FR.UTF-8
|
||||||
|
|||||||
@@ -2,14 +2,23 @@
|
|||||||
|
|
||||||
if (command -v fzf &>/dev/null); then
|
if (command -v fzf &>/dev/null); then
|
||||||
|
|
||||||
|
# Shell integration
|
||||||
source <(fzf --bash)
|
source <(fzf --bash)
|
||||||
|
|
||||||
|
# Options par défaut
|
||||||
|
FZF_DEFAULT_OPTS="\
|
||||||
|
--height 60%
|
||||||
|
--border rounded
|
||||||
|
--layout reverse
|
||||||
|
--highlight-line \
|
||||||
|
--info=inline-right \
|
||||||
|
--ansi \
|
||||||
|
"
|
||||||
|
export FZF_DEFAULT_OPTS
|
||||||
|
|
||||||
# Navigation vers un répertoire
|
# Navigation vers un répertoire
|
||||||
FZF_ALT_C_OPTS="$(
|
FZF_ALT_C_OPTS="$(
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
--height 60%
|
|
||||||
--border sharp
|
|
||||||
--layout reverse
|
|
||||||
--prompt ' '
|
--prompt ' '
|
||||||
--pointer ❯
|
--pointer ❯
|
||||||
--marker ✔
|
--marker ✔
|
||||||
@@ -20,9 +29,6 @@ EOF
|
|||||||
# Selection de fichiers
|
# Selection de fichiers
|
||||||
FZF_CTRL_T_OPTS="$(
|
FZF_CTRL_T_OPTS="$(
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
--height 60%
|
|
||||||
--border sharp
|
|
||||||
--layout reverse
|
|
||||||
--prompt ' '
|
--prompt ' '
|
||||||
--pointer ❯
|
--pointer ❯
|
||||||
--marker ✔
|
--marker ✔
|
||||||
@@ -34,9 +40,6 @@ EOF
|
|||||||
# Navigation dans l'historique
|
# Navigation dans l'historique
|
||||||
FZF_CTRL_R_OPTS="$(
|
FZF_CTRL_R_OPTS="$(
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
--height 60%
|
|
||||||
--border sharp
|
|
||||||
--layout reverse
|
|
||||||
--prompt ' '
|
--prompt ' '
|
||||||
--pointer ❯
|
--pointer ❯
|
||||||
--marker ✔
|
--marker ✔
|
||||||
@@ -44,4 +47,25 @@ EOF
|
|||||||
)"
|
)"
|
||||||
export FZF_CTRL_R_OPTS
|
export FZF_CTRL_R_OPTS
|
||||||
|
|
||||||
|
# Theme tokyonight
|
||||||
|
FZF_DEFAULT_OPTS="${FZF_DEFAULT_OPTS} \
|
||||||
|
--color=bg+:#283457 \
|
||||||
|
--color=bg:#16161e \
|
||||||
|
--color=border:#27a1b9 \
|
||||||
|
--color=fg:#c0caf5 \
|
||||||
|
--color=gutter:#16161e \
|
||||||
|
--color=header:#ff9e64 \
|
||||||
|
--color=hl+:#2ac3de \
|
||||||
|
--color=hl:#2ac3de \
|
||||||
|
--color=info:#545c7e \
|
||||||
|
--color=marker:#ff007c \
|
||||||
|
--color=pointer:#ff007c \
|
||||||
|
--color=prompt:#2ac3de \
|
||||||
|
--color=query:#c0caf5:regular \
|
||||||
|
--color=scrollbar:#27a1b9 \
|
||||||
|
--color=separator:#ff9e64 \
|
||||||
|
--color=spinner:#ff007c \
|
||||||
|
"
|
||||||
|
export FZF_DEFAULT_OPTS
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user