ZSH: Linted files
This commit is contained in:
parent
864f0805ba
commit
384dcae932
@ -1,6 +1,12 @@
|
||||
# Search for docker-compose files in the current and all sub direcotries and run docker compose with provided arguments
|
||||
|
||||
function dc() {
|
||||
if [ -z "$1" ]; then
|
||||
# display usage if no parameters given
|
||||
echo "Search for docker-compose files in the current and all sub direcotries and run docker compose with provided arguments"
|
||||
echo "Usage: dc <docker compose commands>"
|
||||
return 1
|
||||
else
|
||||
# Save current working directory
|
||||
CURRENT_DIR="${PWD}"
|
||||
|
||||
@ -11,4 +17,5 @@ function dc() {
|
||||
|
||||
# Change back to saved working directory
|
||||
cd ${CURRENT_DIR}
|
||||
fi
|
||||
}
|
@ -3,19 +3,19 @@
|
||||
function zwcautocompile() {
|
||||
autoload -Uz zrecompile
|
||||
|
||||
for zsh_file in $(find ${ZDOTDIR} -maxdepth 3 -type f \( -name "*.zsh" -o -name ".zlogin" -o -name ".zshrc" \) ! -name "*.zwc" ! -name "*.zwc.old"); do
|
||||
zrecompile -pq $zsh_file && rm -f $zsh_file.zwc.old
|
||||
for f in $(find ${ZDOTDIR} -maxdepth 3 -type f \( -name "*.zsh" -o -name ".zlogin" -o -name ".zshrc" \) ! -name "*.zwc" ! -name "*.zwc.old"); do
|
||||
zrecompile -pq ${f} && rm -f ${f}.zwc.old
|
||||
done
|
||||
|
||||
if [[ -d ${ZAUTOLOADDIR} ]]; then
|
||||
for f in ${ZAUTOLOADDIR}/*; do
|
||||
zrecompile -pq $f && rm -f $f.zwc.old
|
||||
zrecompile -pq ${f} && rm -f ${f}.zwc.old
|
||||
done
|
||||
fi
|
||||
|
||||
if [[ -d ${ZLIBDIR} ]]; then
|
||||
for f in ${ZLIBDIR}/*; do
|
||||
zrecompile -pq $f && rm -f $f.zwc.old
|
||||
zrecompile -pq ${f} && rm -f ${f}.zwc.old
|
||||
done
|
||||
fi
|
||||
}
|
@ -21,6 +21,5 @@ export PYTHONUSERBASE=${HOME}/.local
|
||||
export INPUTRC="${XDG_CONFIG_HOME}/readline/inputrc"
|
||||
export MANPATH="${MANPATH-$(manpath)}:${HOME}/.local/share/man"
|
||||
|
||||
|
||||
# EZA
|
||||
EZA_CONFIG_DIR=${XDG_CONFIG_HOME}/eza
|
@ -1,4 +1,5 @@
|
||||
# zsh-history-substring-search configuration
|
||||
# Keybindings
|
||||
bindkey '^[[A' history-substring-search-up # or '\eOA'
|
||||
bindkey '^[[B' history-substring-search-down # or '\eOB'
|
||||
|
||||
HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=1
|
Loading…
Reference in New Issue
Block a user