File tree Expand file tree Collapse file tree 5 files changed +51
-22
lines changed
Expand file tree Collapse file tree 5 files changed +51
-22
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,12 @@ alias ipy='ipython'
5050
5151alias piano=' pianobar'
5252
53- alias ..=' cd ..' # Go up one directory
54- alias cd..=' cd ..' # Common misspelling for going up one directory
55- alias ...=' cd ../..' # Go up two directories
56- alias ....=' cd ../../..' # Go up three directories
57- alias -- -=' cd -' # Go back
58- alias dow=' cd /home/$USER /Downloads' # Go to the Downloads directory
53+ alias ..=' cd ..' # Go up one directory
54+ alias cd..=' cd ..' # Common misspelling for going up one directory
55+ alias ...=' cd ../..' # Go up two directories
56+ alias ....=' cd ../../..' # Go up three directories
57+ alias -- -=' cd -' # Go back
58+ alias dow=' cd $HOME /Downloads' # Go to the Downloads directory
5959
6060# Shell History
6161alias h=' history'
Original file line number Diff line number Diff line change 99
1010alias g=' git'
1111alias get=' git'
12- alias got=' git '
12+ alias got=' git'
1313
1414# add
1515alias ga=' git add'
@@ -111,6 +111,7 @@ alias gm='git merge'
111111alias gma=' git merge --abort'
112112alias gmc=' git merge --continue'
113113alias gms=' git merge --squash'
114+ alias gmt=' git mergetool'
114115
115116# mv
116117alias gmv=' git mv'
Original file line number Diff line number Diff line change @@ -3,7 +3,14 @@ about-alias 'laravel artisan abbreviations'
33
44# A list of useful laravel aliases
55
6- alias laravel=' ${HOME?}/.composer/vendor/bin/laravel'
6+ if [[ -x " ${HOME?} /.config/composer/vendor/bin/laravel" ]]; then
7+ alias laravel=' ${HOME?}/.config/composer/vendor/bin/laravel'
8+ elif [[ -x " ${HOME?} /.composer/vendor/bin/laravel" ]]; then
9+ alias laravel=' ${HOME?}/.composer/vendor/bin/laravel'
10+ else
11+ return
12+ fi
13+
714# asset
815alias a:apub=' php artisan asset:publish'
916
Original file line number Diff line number Diff line change 11# shellcheck shell=bash
2- about-alias ' Aliases for Terraform and Terragrunt'
2+ about-alias ' Aliases for Terraform/OpenTofu and Terragrunt'
33
4- alias tf=' terraform'
5- alias tfi=' tf init'
6- alias tfv=' terraform validate'
7- alias tfp=' terraform plan'
8- alias tfa=' terraform apply'
9- alias tfd=' terraform destroy'
10- alias tfw=' terraform workspace'
4+ if _command_exists terraform; then
5+ alias tf=' terraform'
6+ elif _command_exists tofu; then
7+ alias tf=' tofu'
8+ fi
9+
10+ if _command_exists tf; then
11+ alias tfa=' tf apply'
12+ alias tfp=' tf plan'
13+ alias tfd=' tf destroy'
14+ alias tfv=' tf validate'
15+ alias tfi=' tf init'
16+ alias tfo=' tf output'
17+ alias tfr=' tf refresh'
18+ alias tfw=' tf workspace'
19+ alias tfae=' tf apply -auto-approve'
20+ alias tfpa=' tf plan -out=tfplan && tf apply tfplan'
21+ alias tfpaf=' tf plan -out=tfplan && tf apply -auto-approve tfplan'
22+ fi
Original file line number Diff line number Diff line change 11# shellcheck shell=bash
22
3- # Make sure terraform is installed
4- _command_exists terraform || return
3+ if _command_exists terraform; then
54
6- # Don't handle completion if it's already managed
7- complete -p terraform & > /dev/null && return
5+ # Don't handle completion if it's already managed
6+ complete -p terraform & > /dev/null && return
87
9- # Terraform completes itself
10- complete -C terraform terraform
8+ # Terraform completes itself
9+ complete -C terraform terraform
10+
11+ elif _command_exists tofu; then
12+
13+ # Don't handle completion if it's already managed
14+ complete -p tofu & > /dev/null && return
15+
16+ # OpenTofu completes itself
17+ complete -C tofu tofu
18+
19+ fi
You can’t perform that action at this time.
0 commit comments