Add android, fix open alias on MacOS

This commit is contained in:
Leon Grünewald 2022-04-28 10:41:40 +02:00
parent df9619122c
commit c4dc8aa902
2 changed files with 10 additions and 8 deletions

View file

@ -1,19 +1,17 @@
######################################### #########################################
# Aliases # # Aliases #
######################################### #########################################
alias open="xdg-open"
alias gitroot='cd $(git rev-parse --show-toplevel)' alias gitroot='cd $(git rev-parse --show-toplevel)'
alias dc-up="docker-compose up" alias dc-up="docker-compose up"
alias dc-upd="docker-compose up -d" alias dc-upd="docker-compose up -d"
alias dc-down="docker-compose down" alias dc-down="docker-compose down"
alias dl-wpcli="wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar" if [[ -n "$(command -v nvim)" ]]; then
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
alias oldvim='vim' alias oldvim='vim'
alias vim='nvim' alias vim='nvim'
fi fi
if [[ $(uname -s) != "Darwin" ]]; then
alias open="xdg-open"
fi

View file

@ -20,3 +20,7 @@ if [ -n "$(command -v clang++)" ]; then
else else
export CXX=g++ export CXX=g++
fi fi
if [ -n "$(command -v ruby)" ] && [ -n "$(command -v gem)" ]; then
PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"
fi