-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bash_functions
More file actions
32 lines (26 loc) · 790 Bytes
/
.bash_functions
File metadata and controls
32 lines (26 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# system
own() { sudo chown -R "$USER":"$USER" "${1:-.}"; }
# Laravel
bench() { APP_ENV=local APP_DEBUG=true ./vendor/bin/testbench "$@"; }
pestbug() {
clear
local slowmo="${1:-400}"
shift || true
HEADLESS=false PWDEBUG=1 PW_SLOW_MO="$slowmo" ./vendor/bin/pest "$@"
}
# Apache
alias permit='f() { sudo /home/goodm4ven/Code/Scripts/CLI_LARAVEL_lara-stacker/scripts/helpers/permit.sh "$1"; }; f'
# Git
alias girm='f() { git rm -r --cached "$1"; }; f'
oopsie() {
local b
b="$(git rev-parse --abbrev-ref HEAD)" || return 1
git pull --rebase origin "$b" || return 1
git fetch origin || return 1
git rebase origin/main || return 1
git push --force-with-lease origin "$b"
}
# VSC
alias code='f() { codium "$1"; }; f'
# Misc.
download() { aria2c -x 16 -s 16 -k 1M "$@"; }