eat our own dog foot
This commit is contained in:
@ -25,7 +25,7 @@ fi
|
||||
|
||||
function _checkci() {
|
||||
local username
|
||||
username="$(git config --global -l | grep "user.email" | cut -d'@' -f1 | cut -d'=' -f2)"
|
||||
username="$(git config --global -l G "user.email" | cut -d'@' -f1 | cut -d'=' -f2)"
|
||||
local jenkinsfile="${1:-Jenkinsfile}"
|
||||
curl --user "$username:$JENKINS_SECRET" -X POST -F "jenkinsfile=<$jenkinsfile" "$JENKINS_URL/pipeline-model-converter/validate"
|
||||
}
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
npm list -g --depth 0
|
||||
source $HOME/Code/dotfiles/dot_zsh_aliases
|
||||
npmlist
|
||||
|
@ -17,7 +17,7 @@ function suggest_readable_parameters() {
|
||||
if [[ $(LC_ALL=C type "$command_name") != *"alias for"* && $(LC_ALL=C type "$command_name") != *"is a shell function"* ]] && [[ $($command_name --help &>/dev/null) -eq 0 || $(info $command_name &>/dev/null) -eq 0 ]]; then
|
||||
while read -r command_usage; do
|
||||
arrow "searching for parameters in: $command_usage "
|
||||
echo "$command_usage" | \grep -Eo "\b$command_name\b (\-[a-zA-Z0-9]*)" | head -1 | tr -d '-' | awk -v COUNT=1 'NF=COUNT' 1>/dev/null
|
||||
echo "$command_usage" | \grep -Eo "\b$command_name\b (\-[a-zA-Z0-9]*)" H -1 | tr -d '-' | awk -v COUNT=1 'NF=COUNT' 1>/dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
while read -r command_parameters; do
|
||||
success "($command_name) -> found parameters : $command_parameters"
|
||||
@ -36,8 +36,8 @@ function suggest_readable_parameters() {
|
||||
success "($command_name -$parameter_name) -> found better alternative to $parameter_name in $command_usage:"
|
||||
info $command_name 2>/dev/null | \egrep -wo "(\-$parameter_name), --.*"
|
||||
fi
|
||||
done < <(echo "$command_parameters" | head -1 | tr -d '-' | fold -w 1)
|
||||
done < <(echo "$command_usage" | \grep -Po "(?<=\b$command_name\b )(\-[a-zA-Z0-9]*)" | sort -u) #| head -1 | tr -d '-' | fold -w 1)
|
||||
done < <(echo "$command_parameters" H -1 | tr -d '-' | fold -w 1)
|
||||
done < <(echo "$command_usage" | \grep -Po "(?<=\b$command_name\b )(\-[a-zA-Z0-9]*)" | sort -u)
|
||||
fi
|
||||
done < <(grep -H -n "\b$command_name\b" "$@")
|
||||
else
|
||||
@ -45,5 +45,5 @@ function suggest_readable_parameters() {
|
||||
true
|
||||
fi
|
||||
fi
|
||||
done < <(top_commands "" 1000 | awk '{print $4}' | grep "^[\\\\]?[a-z]+$" | sort -u)
|
||||
done < <(top_commands "" 1000 | awk '{print $4}' G "^[\\\\]?[a-z]+$" | sort -u)
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ bundle update --all
|
||||
zsh ~/.oh-my-zsh/tools/upgrade.sh
|
||||
sudo pip install --upgrade pip 2>/dev/null
|
||||
sudo pip3 install --upgrade pip 2>/dev/null
|
||||
pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
|
||||
pip list --outdated --format=freeze G -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
|
||||
pip freeze >~/requirements.txt
|
||||
# Update VIM plugins installed via Vundle https://github.com/VundleVim/Vundle.vim
|
||||
vim +PluginUpdate +qall >/dev/null
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail
|
||||
vim --version | head -1
|
||||
vim --version H -1
|
||||
rustc --version
|
||||
npm --version
|
||||
bats --version
|
||||
@ -19,12 +19,12 @@ python3 --version
|
||||
docker --version
|
||||
openssl version
|
||||
git --version
|
||||
atlas-version | grep Version | head -n 1
|
||||
atlas-version G Version H -n 1
|
||||
|
||||
export SDKMAN_DIR="$HOME/.sdkman"
|
||||
[[ -s "$SDKMAN_DIR/bin/sdkman-init.sh" ]] && source "$SDKMAN_DIR/bin/sdkman-init.sh"
|
||||
sdk --version
|
||||
tac --version | head -n 1
|
||||
tac --version H -n 1
|
||||
k9s version
|
||||
tfsec --version
|
||||
aws-iam-authenticator version
|
||||
|
Reference in New Issue
Block a user