Skip to content

Commit 984c368

Browse files
authored
Merge pull request #2306 from seefood/ira/pre-release-nitpicks
2 parents 99c680b + b50da66 commit 984c368

File tree

5 files changed

+51
-22
lines changed

5 files changed

+51
-22
lines changed

aliases/available/general.aliases.bash

+6-6
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ alias ipy='ipython'
5050

5151
alias 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
6161
alias h='history'

aliases/available/git.aliases.bash

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fi
99

1010
alias g='git'
1111
alias get='git'
12-
alias got='git '
12+
alias got='git'
1313

1414
# add
1515
alias ga='git add'
@@ -111,6 +111,7 @@ alias gm='git merge'
111111
alias gma='git merge --abort'
112112
alias gmc='git merge --continue'
113113
alias gms='git merge --squash'
114+
alias gmt='git mergetool'
114115

115116
# mv
116117
alias gmv='git mv'

aliases/available/laravel.aliases.bash

+8-1
Original file line numberDiff line numberDiff 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
815
alias a:apub='php artisan asset:publish'
916

+20-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
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 numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
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

0 commit comments

Comments
 (0)