Skip to content

Commit

Permalink
porter and custom autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
julienbourdeau committed Apr 5, 2024
1 parent ed9bc32 commit 3a8dc77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ bin/idea1
etc/hosts.local
vendor
composer.lock
home/bash/bash_completion.d
4 changes: 1 addition & 3 deletions home/bash/aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,13 @@ alias nah='git reset HEAD --hard'
alias gc='git checkout'

# Dev shortcuts
alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'
alias composer="COMPOSER_MEMORY_LIMIT=-1 composer"
alias vapor='vendor/bin/vapor'
alias sf='php bin/console'
alias art='php artisan'
alias be='bundle exec'
alias rake='rake -s'
alias r='bin/rails'
alias k='kubectl'
alias p='porter'

alias lago="docker-compose -f $LAGO_PATH/docker-compose.dev.yml"

Expand Down
2 changes: 2 additions & 0 deletions home/bash_profile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ if which brew &> /dev/null; then
load_all_files "$(brew --prefix)/etc/bash_completion.d/*"
fi;

load_all_files "$HOME/.bash/bash_completion.d/*"

# Add tab completion for SSH hostnames based on ~/.ssh/config, ignoring wildcards
[ -e "$HOME/.ssh/config" ] && complete -o "default" -o "nospace" -W "$(grep "^Host" ~/.ssh/config | grep -v "[?*]" | cut -d " " -f2- | tr ' ' '\n')" scp sftp ssh;

Expand Down

0 comments on commit 3a8dc77

Please sign in to comment.