Improve aliases and autocompletion.
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
parent
5e9e061e4f
commit
56a65c36c5
@ -7,12 +7,13 @@ alias ~="cd ~"
|
|||||||
alias -- -="cd -" # The alias is `-`, not `--`
|
alias -- -="cd -" # The alias is `-`, not `--`
|
||||||
|
|
||||||
# Shortcuts
|
# Shortcuts
|
||||||
alias c="composer"
|
alias c="php -dmemory_limit=2G $HOME/dotfiles/bin/composer"
|
||||||
|
alias e=$EDITOR
|
||||||
alias o="open"
|
alias o="open"
|
||||||
alias oo="open ."
|
alias oo="open ."
|
||||||
alias e=$EDITOR
|
alias t="tmux"
|
||||||
alias +x="chmod +x"
|
|
||||||
alias x+="chmod +x"
|
alias x+="chmod +x"
|
||||||
|
alias +x="chmod +x"
|
||||||
|
|
||||||
# Detect which `ls` flavor is in use
|
# Detect which `ls` flavor is in use
|
||||||
if ls --color > /dev/null 2>&1; then # GNU `ls`
|
if ls --color > /dev/null 2>&1; then # GNU `ls`
|
||||||
|
@ -12,3 +12,7 @@ _ssh_reload_autocomplete
|
|||||||
|
|
||||||
# Add AWS CLI Completion.
|
# Add AWS CLI Completion.
|
||||||
complete -C aws_completer aws
|
complete -C aws_completer aws
|
||||||
|
complete -F _tmux t
|
||||||
|
|
||||||
|
# Add Gush completion.
|
||||||
|
[ -f $HOME/.gush/.gush-autocomplete.bash ] && source $HOME/.gush/.gush-autocomplete.bash
|
||||||
|
Loading…
Reference in New Issue
Block a user