summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc42
1 files changed, 5 insertions, 37 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 61ee7c5..be073c0 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -1,13 +1,3 @@
-# randrun() {
-# local cmds=("$@")
-# (( ${#cmds[@]} )) || { echo "No commands provided."; return 1; }
-# local choice=$(( RANDOM % ${#cmds[@]} ))
-# eval "${cmds[$choice]}"
-# }
-# randrun "pfetch"
-
-# pfetch
-
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
@@ -27,12 +17,6 @@ export ZSH="$HOME/.oh-my-zsh"
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="powerlevel10k/powerlevel10k"
-# Set list of themes to pick from when loading at random
-# Setting this variable when ZSH_THEME=random will cause zsh to load
-# a theme from this variable instead of looking in $ZSH/themes/
-# If set to an empty array, this variable will have no effect.
-# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
-
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
@@ -65,6 +49,7 @@ ZSH_THEME="powerlevel10k/powerlevel10k"
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
# COMPLETION_WAITING_DOTS="true"
+COMPLETION_WAITING_DOTS="%F{yellow}...%f"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
@@ -78,6 +63,7 @@ ZSH_THEME="powerlevel10k/powerlevel10k"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
+HIST_STAMPS="%Y-%m-%d %H:%M:%S"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
@@ -120,16 +106,12 @@ source $ZSH/oh-my-zsh.sh
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
-# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=1000000000
+
setopt beep notify
setopt CORRECT
-# bindkey -v
-# Map Ctrl+G to switch to normal mode (like Escape)
-# bindkey '^G' vi-cmd-mode
-# End of lines configured by zsh-newuser-install
# FZF
source <(fzf --zsh)
@@ -141,39 +123,25 @@ eval "$(zoxide init zsh)"
export FZF_DEFAULT_OPTS="--color=fg+:#FFC600,bg+:#395e5e,header:#ff00ff,info:#FFC600,pointer:#8affff,marker:#8affff,prompt:#ffC600,spinner:#FFC600,query:#8affff,hl:#00e6a9,hl+:#00e6a9"
-# The following lines were added by compinstall
+# Compinstall
zstyle :compinstall filename '/home/bh/.zshrc'
-
autoload -Uz compinit
compinit
-# End of lines added by compinstall
# Editor
export EDITOR="nvim"
export VISUAL="nvim"
-# BH Aliases
+# Aliases
alias ls="lsd"
alias ll="lsd -lah"
-
alias vi="nvim"
-
-alias zen="zen-browser"
-
-alias neofetch="fastfetch"
-
alias sudo='sudo '
-
alias icat="kitty icat"
-
alias py="python"
-
alias rename="perl-rename"
-
alias tt="~/Scripts/ttzoom"
-alias rm="rm -i"
-
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh