Skip to content

Instantly share code, notes, and snippets.

@prashcr
Last active May 8, 2019 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prashcr/e28d7167a5551d79e3b2658033abfb5a to your computer and use it in GitHub Desktop.
Save prashcr/e28d7167a5551d79e3b2658033abfb5a to your computer and use it in GitHub Desktop.
bash options, aliases, completions
shopt -s autocd
shopt -s cdspell
shopt -s dirspell
export EDITOR="vim"
export PROMPT_COMMAND="history -a; history -c; history -r;$PROMPT_COMMAND"
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ......='cd ../../../../..'
alias be='bundle exec'
alias rspec='bundle exec rspec'
alias rails='bundle exec rails'
alias rake='bundle exec rake'
alias cap='bundle exec cap'
alias bupdate='bundle update --source'
alias git=hub
alias mkdir='mkdir -p'
alias ip='dig +short myip.opendns.com @resolver1.opendns.com'
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
alias weather='curl wttr.in'
alias untar='tar -zxvf'
alias sysu='systemctl --user'
function whois {
curl ip-api.com/line/$1
}
function take {
mkdir $1
cd $1
}
. ~/.fzf.bash
. ~/.asdf/asdf.sh
. ~/.asdf/completions/asdf.bash
gpg-connect-agent updatestartuptty /bye >/dev/null
# tabtab source for serverless package
# uninstall by removing these lines or running `tabtab uninstall serverless`
[ -f /home/prashanth/.asdf/installs/nodejs/11.6.0/.npm/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.bash ] && . /home/prashanth/.asdf/installs/nodejs/11.6.0/.npm/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.bash
# tabtab source for sls package
# uninstall by removing these lines or running `tabtab uninstall sls`
[ -f /home/prashanth/.asdf/installs/nodejs/11.6.0/.npm/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.bash ] && . /home/prashanth/.asdf/installs/nodejs/11.6.0/.npm/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment