Skip to content

Instantly share code, notes, and snippets.

@a-mhamdi
Last active May 17, 2024 11:59
Show Gist options
  • Save a-mhamdi/41459d99ce44129f0121016bd74dd4ef to your computer and use it in GitHub Desktop.
Save a-mhamdi/41459d99ce44129f0121016bd74dd4ef to your computer and use it in GitHub Desktop.
ZSH RC FILE
#----------------------------#
# 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