From 60edd565d6d749d0719e5bbb479a625d98233102 Mon Sep 17 00:00:00 2001 From: Elias Renman Date: Wed, 29 Nov 2023 00:12:58 +0100 Subject: [PATCH] chore: cleanup zshrc --- .zshrc | 42 ------------------------------------------ 1 file changed, 42 deletions(-) diff --git a/.zshrc b/.zshrc index b26fd00..34b17ed 100644 --- a/.zshrc +++ b/.zshrc @@ -35,45 +35,3 @@ alias vi="nvim" alias oldvim="vim" alias ls="exa" alias cat="batcat" - -source /home/eliasrenman/alacritty/extra/completions/alacritty.bash -PATH="$HOME/.local/bin:$PATH" - -function cd() { - builtin cd "$@" - - if [[ -z "$VIRTUAL_ENV" ]] ; then - ## If env folder is found then activate the vitualenv - if [[ -d ./.env ]] ; then - source ./.env/bin/activate - fi - else - ## check the current folder belong to earlier VIRTUAL_ENV folder - # if yes then do nothing - # else deactivate - parentdir="$(dirname "$VIRTUAL_ENV")" - if [[ "$PWD"/ != "$parentdir"/* ]] ; then - deactivate - fi - fi -} - -function cd() { - builtin cd "$@" - - if [[ -z "$VIRTUAL_ENV" ]] ; then - ## If env folder is found then activate the vitualenv - if [[ -d ./.env ]] ; then - source ./.env/bin/activate - fi - else - ## check the current folder belong to earlier VIRTUAL_ENV folder - # if yes then do nothing - # else deactivate - parentdir="$(dirname "$VIRTUAL_ENV")" - if [[ "$PWD"/ != "$parentdir"/* ]] ; then - deactivate - fi - fi -} -