Merge shell configs
This commit is contained in:
parent
648edd2341
commit
f676b19741
@ -1,4 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
if [[ ${BASH_VERSION} != "3.2*" ]]; then
|
||||||
|
shopt -s autocd
|
||||||
|
fi
|
||||||
|
|
||||||
|
# append to the history file, don't overwrite it
|
||||||
|
shopt -s histappend
|
||||||
|
|
||||||
|
# check the window size after each command and, if necessary,
|
||||||
|
# update the values of LINES and COLUMNS.
|
||||||
|
shopt -s checkwinsize
|
||||||
|
|
||||||
# always save bash history before showing prompt; allow reloading bashrc
|
# always save bash history before showing prompt; allow reloading bashrc
|
||||||
if [[ ! $PROMPT_COMMAND =~ "history -a" ]]; then
|
if [[ ! $PROMPT_COMMAND =~ "history -a" ]]; then
|
||||||
@ -22,4 +31,10 @@ if test -r ~/.dircolors; then
|
|||||||
fi
|
fi
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
if [[ -d "${XDG_DATA_HOME}/JetBrains/Toolbox/scripts" ]]; then
|
||||||
|
if [[ ":${PATH}:" != *":${XDG_DATA_HOME}/JetBrains/Toolbox/scripts:"* ]]; then
|
||||||
|
export PATH="${PATH}:${XDG_DATA_HOME}/JetBrains/Toolbox/scripts"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# vim: filetype=bash
|
# vim: filetype=bash
|
||||||
|
|||||||
@ -48,4 +48,17 @@ source <(starship init bash)
|
|||||||
eval "$(trubka --completion-script-bash)"
|
eval "$(trubka --completion-script-bash)"
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
# vim: filetype=bash
|
|
||||||
|
{{ if lookPath "rbenv" -}}
|
||||||
|
if [ "${RBENV_SHELL}" = "" ]; then
|
||||||
|
eval "$(rbenv init -)"
|
||||||
|
fi
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
|
{{ if and (lookPath "rvm") (stat (joinPath .chezmoi.homeDir ".rvm" "bin") ) -}}
|
||||||
|
if [[ ! "${PATH}" =~ ${HOME}/.rvm/bin ]]; then
|
||||||
|
export PATH="$PATH:$HOME/.rvm/bin"
|
||||||
|
fi
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
|
# vim: filetype=sh
|
||||||
|
|||||||
@ -1,6 +1,3 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
#ft=bash
|
|
||||||
|
|
||||||
function min-jpg {
|
function min-jpg {
|
||||||
min_jpg "${@}"
|
min_jpg "${@}"
|
||||||
}
|
}
|
||||||
@ -16,3 +13,5 @@ function get-create-date {
|
|||||||
function add-date-prefix {
|
function add-date-prefix {
|
||||||
add_date_prefix "${@}"
|
add_date_prefix "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# vim: filetype=bash
|
||||||
|
|||||||
@ -1,8 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
#ft=bash
|
|
||||||
|
|
||||||
if [[ -d "${XDG_DATA_HOME}/JetBrains/Toolbox/scripts" ]]; then
|
|
||||||
if [[ ":${PATH}:" != *":${XDG_DATA_HOME}/JetBrains/Toolbox/scripts:"* ]]; then
|
|
||||||
export PATH="${PATH}:${XDG_DATA_HOME}/JetBrains/Toolbox/scripts"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
if [[ ${BASH_VERSION} != "3.2*" ]]; then
|
|
||||||
shopt -s autocd
|
|
||||||
fi
|
|
||||||
|
|
||||||
# append to the history file, don't overwrite it
|
|
||||||
shopt -s histappend
|
|
||||||
|
|
||||||
# check the window size after each command and, if necessary,
|
|
||||||
# update the values of LINES and COLUMNS.
|
|
||||||
shopt -s checkwinsize
|
|
||||||
|
|
||||||
# vim: ft=bash
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
{{ if lookPath "rbenv" -}}
|
|
||||||
# shellcheck shell=bash
|
|
||||||
|
|
||||||
if [ "${RBENV_SHELL}" = "" ]; then
|
|
||||||
eval "$(rbenv init -)"
|
|
||||||
fi
|
|
||||||
{{ end }}
|
|
||||||
{{- if lookPath "rvm" -}}
|
|
||||||
if [[ -d "${HOME}/.rvm/bin" ]]; then
|
|
||||||
# shellcheck disable=SC2076
|
|
||||||
if [[ ! "${PATH}" =~ "${HOME}/.rvm/bin" ]]; then
|
|
||||||
export PATH="$PATH:$HOME/.rvm/bin"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
{{- end }}
|
|
||||||
@ -1,3 +1,6 @@
|
|||||||
|
{{ if lookPath "helm" -}}
|
||||||
|
eval "$(helm completion fish)"
|
||||||
|
{{- end }}
|
||||||
{{ if lookPath "erd" -}}
|
{{ if lookPath "erd" -}}
|
||||||
eval "$(erd --completions fish)"
|
eval "$(erd --completions fish)"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -1,6 +0,0 @@
|
|||||||
{{ if lookPath "helm" -}}
|
|
||||||
# vim: ft=sh
|
|
||||||
if command -v helm > /dev/null 2>&1; then
|
|
||||||
eval "$(helm completion fish)"
|
|
||||||
fi
|
|
||||||
{{- end }}
|
|
||||||
Loading…
Reference in New Issue
Block a user