Last active
May 17, 2024 11:59
-
-
Save a-mhamdi/41459d99ce44129f0121016bd74dd4ef to your computer and use it in GitHub Desktop.
ZSH RC FILE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------------------------# | |
# CONFIGURATION FILE FOR ZSH # | |
#----------------------------# | |
export TERM="xterm-256color" | |
# Path to your oh-my-zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
source $ZSH/oh-my-zsh.sh | |
ZSH_THEME="dracula" | |
# Uncomment the following line to enable command auto-correction. | |
ENABLE_CORRECTION="true" | |
# Uncomment the following line to display red dots whilst waiting for completion. | |
COMPLETION_WAITING_DOTS="true" | |
plugins=(git zsh-autosuggestions virtualenv wakatime) | |
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status virtualenv) | |
# User configuration | |
if [[ -n $SSH_CONNECTION ]]; then | |
export EDITOR='vim' | |
else | |
export EDITOR='mvim' | |
fi | |
# FUNCTION 'RUN' | |
run() { | |
number=$1 | |
shift | |
for i in `seq $number`; do | |
echo $i | |
$@ | |
done | |
} | |
#= VIRTUALENV SETTINGS =# | |
source ~/appware/virtenv/venv/bin/activate | |
ZSH_THEME_VIRTUALENV_PREFIX="(" | |
ZSH_THEME_VIRTUALENV_SUFFIX=")" | |
PS1='%{$fg[red]%} $(virtualenv_prompt_info) %{$fg[blue]%}>> %{$reset_color%}' # RPS is for Right Prompt | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment