File tree 5 files changed +51
-22
lines changed
5 files changed +51
-22
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,12 @@ alias ipy='ipython'
50
50
51
51
alias piano=' pianobar'
52
52
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
59
59
60
60
# Shell History
61
61
alias h=' history'
Original file line number Diff line number Diff line change 9
9
10
10
alias g=' git'
11
11
alias get=' git'
12
- alias got=' git '
12
+ alias got=' git'
13
13
14
14
# add
15
15
alias ga=' git add'
@@ -111,6 +111,7 @@ alias gm='git merge'
111
111
alias gma=' git merge --abort'
112
112
alias gmc=' git merge --continue'
113
113
alias gms=' git merge --squash'
114
+ alias gmt=' git mergetool'
114
115
115
116
# mv
116
117
alias gmv=' git mv'
Original file line number Diff line number Diff line change @@ -3,7 +3,14 @@ about-alias 'laravel artisan abbreviations'
3
3
4
4
# A list of useful laravel aliases
5
5
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
+
7
14
# asset
8
15
alias a:apub=' php artisan asset:publish'
9
16
Original file line number Diff line number Diff line change 1
1
# shellcheck shell=bash
2
- about-alias ' Aliases for Terraform and Terragrunt'
2
+ about-alias ' Aliases for Terraform/OpenTofu and Terragrunt'
3
3
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 1
1
# shellcheck shell=bash
2
2
3
- # Make sure terraform is installed
4
- _command_exists terraform || return
3
+ if _command_exists terraform; then
5
4
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
8
7
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