automated dev commit
This commit is contained in:
parent
cf5620f57f
commit
94fe54f20e
8 changed files with 87 additions and 59 deletions
|
@ -50,6 +50,7 @@ yarnpkg() { echo 🖕; }
|
|||
pnpm() { echo 🖕; }
|
||||
pn() { echo 🖕; }
|
||||
pnpx() { echo 🖕; }
|
||||
npm() { echo 🖕; }
|
||||
|
||||
alias p='_package_manager'
|
||||
|
||||
|
@ -63,6 +64,14 @@ function open {
|
|||
done
|
||||
}
|
||||
|
||||
function fopen() {
|
||||
local selected
|
||||
selected=$(fd "$@" | fzf)
|
||||
[[ -n "$selected" ]] && setsid nohup xdg-open "$selected" >/dev/null 2>&1 &
|
||||
}
|
||||
|
||||
alias fo='fopen'
|
||||
|
||||
function upload_file() {
|
||||
if [[ -z "$1" ]]; then
|
||||
echo "Usage: $0 <file>"
|
||||
|
@ -73,10 +82,11 @@ function upload_file() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
# local url="https://dump.mz.uy"
|
||||
local url="http://localhost:8080"
|
||||
local url="https://dump.mz.uy"
|
||||
# local url="http://localhost:8080"
|
||||
echo "Uploading $1 to $url..."
|
||||
local full_response=$(curl -i -F"file=@$1" -F"one_time=" "$url")
|
||||
# local full_response=$(curl -i -F"file=@$1" "$url")
|
||||
local url_response=$(echo "$full_response" | tail -n 1)
|
||||
local token=$(echo "$full_response" | grep -i "X-Token:" | awk '{print $2}' | tr -d '\r')
|
||||
|
||||
|
@ -290,7 +300,6 @@ if command -v kubefwd &> /dev/null; then eval "$(kubefwd completion zsh)"; fi
|
|||
if command -v bombadil &> /dev/null; then eval "$(bombadil generate-completions zsh)"; fi
|
||||
if command -v eza &> /dev/null; then compdef eza=ls; fi
|
||||
|
||||
|
||||
function dc() {
|
||||
git add .
|
||||
git commit -m 'automated dev commit' --no-gpg-sign
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue