From a016d75e0f77d50122b5bf43ef6cf34886b382a9 Mon Sep 17 00:00:00 2001 From: Niko Abeler Date: Wed, 7 Dec 2022 14:22:06 +0100 Subject: [PATCH] zsh --- .zshrc | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .zshrc diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..fa65a89 --- /dev/null +++ b/.zshrc @@ -0,0 +1,32 @@ +# If you come from bash you might have to change your $PATH. +export PATH=$HOME/bin:/usr/local/bin:$PATH + +# Path to your oh-my-zsh installation. +export ZSH="/home/h4kor/.oh-my-zsh" + +ZSH_THEME="agnoster" + +plugins=(git mix virtualenv npm sudo web-search) + +source $ZSH/oh-my-zsh.sh + +# Preferred editor for local and remote sessions +if [[ -n $SSH_CONNECTION ]]; then + export EDITOR='nvim' +else + export EDITOR='nvim' +fi + +export FZF_DEFAULT_COMMAND='fdfind --type f' + +# The next line updates PATH for the Google Cloud SDK. +if [ -f '/home/h4kor/google-cloud-sdk/path.zsh.inc' ]; then . '/home/h4kor/google-cloud-sdk/path.zsh.inc'; fi + +# The next line enables shell command completion for gcloud. +if [ -f '/home/h4kor/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/h4kor/google-cloud-sdk/completion.zsh.inc'; fi + +alias vv=". venv/bin/activate" +alias djs="python manage.py shell" +alias djr="python manage.py runserver" +alias djmm="python manage.py makemigrations" +alias djmi="python manage.py migrate"