Add android, fix open alias on MacOS
This commit is contained in:
parent
df9619122c
commit
c4dc8aa902
2 changed files with 10 additions and 8 deletions
|
@ -1,19 +1,17 @@
|
|||
#########################################
|
||||
# Aliases #
|
||||
#########################################
|
||||
alias open="xdg-open"
|
||||
alias gitroot='cd $(git rev-parse --show-toplevel)'
|
||||
|
||||
alias dc-up="docker-compose up"
|
||||
alias dc-upd="docker-compose up -d"
|
||||
alias dc-down="docker-compose down"
|
||||
|
||||
alias dl-wpcli="wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar"
|
||||
alias dl-wp="curl https://wordpress.org/latest.tar.gz | tar -xzv"
|
||||
|
||||
alias gpgcb="xsel --clipboard | sed 's/^ *//g' | gpg2 -d"
|
||||
|
||||
if [ -n "$(command -v nvim)" ]; then
|
||||
if [[ -n "$(command -v nvim)" ]]; then
|
||||
alias oldvim='vim'
|
||||
alias vim='nvim'
|
||||
fi
|
||||
|
||||
if [[ $(uname -s) != "Darwin" ]]; then
|
||||
alias open="xdg-open"
|
||||
fi
|
||||
|
|
|
@ -20,3 +20,7 @@ if [ -n "$(command -v clang++)" ]; then
|
|||
else
|
||||
export CXX=g++
|
||||
fi
|
||||
|
||||
if [ -n "$(command -v ruby)" ] && [ -n "$(command -v gem)" ]; then
|
||||
PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue