mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
92 lines
3.2 KiB
Bash
92 lines
3.2 KiB
Bash
# If you come from bash you might have to change your $PATH.
|
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
|
|
|
export ZSH="/home/pratik/.oh-my-zsh"
|
|
|
|
# Set name of the theme to load --- if set to "random", it will
|
|
# load a random theme each time oh-my-zsh is loaded, in which case,
|
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
|
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
|
ZSH_THEME="powerlevel9k/powerlevel9k"
|
|
#ZSH_THEME="spaceship"
|
|
|
|
|
|
# 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"
|
|
|
|
# Uncomment the following line if you want to change the command execution time
|
|
# stamp shown in the history command output.
|
|
# You can set one of the optional three formats:
|
|
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
|
# or set a custom format using the strftime function format specifications,
|
|
# see 'man strftime' for details.
|
|
HIST_STAMPS="dd.mm.yyyy"
|
|
|
|
# Which plugins would you like to load?
|
|
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
|
|
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
|
# Add wisely, as too many plugins slow down shell startup.
|
|
plugins=(
|
|
git
|
|
history
|
|
per-directory-history
|
|
perms
|
|
sudo
|
|
systemd
|
|
zsh-autosuggestions
|
|
zsh-completions
|
|
zsh-syntax-highlighting
|
|
)
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
##############Pratik POWERLEVEL9K Configs####################################
|
|
POWERLEVEL9K_SHORTEN_DIR_LENGTH=4
|
|
POWERLEVEL9K_SHORTEN_STRATEGY="None"
|
|
POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=0
|
|
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
|
|
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
|
|
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="\u256D\u2500%F"
|
|
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="\u2570\uf460%F%{%B%F{white}%K{#0E1F22}%} $user_symbol %{%b%f%k%F{#0E1F22}%} %{%f%}"
|
|
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M:%S %a}"
|
|
POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=0
|
|
POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=6
|
|
|
|
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(user ssh dir dir_writable root_indicator vcs)
|
|
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status rspec_stats command_execution_time background_jobs history docker_machine time)
|
|
|
|
local user_symbol="$"
|
|
if [[ $(print -P "%#") =~ "#" ]]; then
|
|
user_symbol = "#"
|
|
fi
|
|
POWERLEVEL9K_MODE='nerdfont-complete'
|
|
|
|
##############Pratik POWERLEVEL9K Configs END################################
|
|
|
|
setopt +o nomatch
|
|
|
|
# Higher History
|
|
export HISTSIZE=10000000
|
|
export SAVEHIST=10000000
|
|
setopt EXTENDED_HISTORY # Write the history file in the ":start:elapsed;command" format.
|
|
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.
|
|
setopt SHARE_HISTORY # Share history between all sessions.
|
|
setopt HIST_REDUCE_BLANKS # Remove superfluous blanks before recording entry.
|
|
setopt HIST_VERIFY # Don't execute immediately upon history expansion.
|
|
setopt HIST_IGNORE_SPACE # Don't add commands that start with whitespace to history
|
|
|
|
if [[ -f ~/.aliases ]]; then
|
|
source ~/.aliases
|
|
fi
|
|
|
|
if [[ -f ~/.aliases_personal ]]; then
|
|
source ~/.aliases_personal
|
|
fi
|
|
|
|
if [[ -f ~/.gosetup ]]; then
|
|
source ~/.gosetup
|
|
fi |