# for fzf if [ -e "/usr/share/bash-completion/completions/fzf" ]; then source /usr/share/bash-completion/completions/fzf fi if [ -e "/usr/share/doc/fzf/examples/completion.bash" ]; then source /usr/share/doc/fzf/examples/completion.bash fi if [ -e "/usr/share/doc/fzf/examples/key-bindings.bash" ]; then source /usr/share/doc/fzf/examples/key-bindings.bash fi # file preview in fzf export FZF_DEFAULT_OPTS="--preview 'batcat --color=always {}'" case "$TERM" in xterm-color|*-256color) color_prompt=yes;; esac if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\e[50m\]\[\e[1m\]\[\e[38;5;197m\]\u\[\e[38;5;250m\]@\[\e[38;5;105m\]\h\[\e[1m\]:\[\e[00m\]\[\e[3m\]\[\e[48;5;236m\]\[\e[38;5;197m\]\w/\[\e[00m\]\[\e[00m\] ' alias l='ls --color=auto -la --time-style=+%Y-%m-%d\ %H:%M:%S --human-readable' alias lt='ls --color=auto -la --time-style=+%Y-%m-%d\ %H:%M:%S --human-readable --sort=time --reverse' else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi # mirco editor alias mi='/usr/bin/micro -config-dir /etc/custom/mydebian_helper/micro' alias micro='/usr/bin/micro -config-dir /etc/custom/mydebian_helper/micro' export MICRO_TRUECOLOR=1 # for ble.sh [[ ! ${BLE_VERSION-} ]] || ble-attach