Skip to content

Instantly share code, notes, and snippets.

@toruticas
Last active September 20, 2022 07:03
Show Gist options
  • Save toruticas/5faee88e92fb01ded8ab745e2786ffff to your computer and use it in GitHub Desktop.
Save toruticas/5faee88e92fb01ded8ab745e2786ffff to your computer and use it in GitHub Desktop.
export ZSH="/Users/rs0230/.oh-my-zsh"
ZSH_THEME='gnzh'
plugins=(
git
dnf
zsh-autosuggestions
)
source $ZSH/oh-my-zsh.sh
alias zshconfig="vim ~/.zshrc"
# Setting fd as the default source for fzf
export FZF_DEFAULT_COMMAND='fd --type f'
# To apply the command to CTRL-T as well
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
alias c='docker-compose'
alias cup='docker-compose up'
alias cr='docker-compose run --service-ports --rm'
alias crl='docker-compose run --service-ports --rm local'
alias crd='docker-compose run --service-ports --rm develop'
alias crt='docker-compose run --rm test'
alias crp='docker-compose run --rm provision'
alias crci='docker-compose run --rm ci'
alias crwt='docker-compose run --rm watchtest'
alias cps='docker-compose ps'
alias clogs='docker-compose logs'
alias d-ember='docker run --rm -it -v $(pwd):/myapp -p 4200:4200 -p 7020:7020 -p 7357:7357 danlynn/ember-cli:3.13.0 bash'
alias urldecode='python -c "import sys, urllib as ul; print ul.unquote_plus(sys.argv[1])"'
alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1])"'
alias rgbtohex='python -c "import sys; print \"#%02x%02x%02x\" % (int(sys.argv[1]), int(sys.argv[2]), int(sys.argv[3]))"'
# alias python2='python'
alias python='python3'
alias py='python3'
# alias pip2='pip'
alias pip='pip3'
# Accept autossugest
bindkey '^ ' autosuggest-accept
export LANG=en_US.UTF-8
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export DOCKER_CLIENT_TIMEOUT=120
export COMPOSE_HTTP_TIMEOUT=120
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment