conf2/zsh/.zshrc

113 lines
3.9 KiB
Bash
Raw Permalink Normal View History

2020-05-18 07:50:06 +00:00
# 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.
2019-05-15 08:16:42 +00:00
zstyle :omz:plugins:ssh-agent agent-forwarding on
#
2021-07-11 19:59:42 +00:00
export SSH_KEY_PATH="~/.ssh/rsa_id"
2019-05-15 08:16:42 +00:00
#If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
#ZSH_THEME="agnoster"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
2021-02-10 07:50:30 +00:00
DISABLE_AUTO_UPDATE="false"
2019-05-15 08:16:42 +00:00
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
2021-07-11 19:59:42 +00:00
ENABLE_CORRECTION="true"
2019-05-15 08:16:42 +00:00
# Uncomment the following line to display red dots whilst waiting for completion.
2021-07-11 19:59:42 +00:00
COMPLETION_WAITING_DOTS="true"
2019-05-15 08:16:42 +00:00
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
2020-09-03 18:00:26 +00:00
ZSH_CUSTOM=$HOME/.oh-my-zsh-custom
2019-05-15 08:16:42 +00:00
# Which plugins would you like to load? (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.
2022-02-13 16:42:26 +00:00
plugins=(archlinux common-aliases cp systemd colored-man-pages extract rsync history-substring-search nmap sudo systemadmin wakeonlan git zsh-256color tmux thefuck zsh-syntax-highlighting pip pyenv python docker fzf fzf-tab kubectl)
2019-05-15 08:16:42 +00:00
# User configuration
2021-07-11 19:59:42 +00:00
# fzf-tab option
zstyle ':completion:*:git-checkout:*' sort false
zstyle ':completion:*:git-diff:*' sort false
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*:descriptions' format '[%d]'
2019-05-15 08:16:42 +00:00
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
#if [[ -n $SSH_CONNECTION ]]; then
#export EDITOR='vim'
#else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
2022-01-27 19:35:46 +00:00
#tmux config path
ZSH_TMUX_CONFIG=$HOME/.config/tmux/tmux.conf
2019-05-15 08:16:42 +00:00
ZSH_CACHE_DIR=$HOME/.oh-my-zsh-cache
if [[ ! -d $ZSH_CACHE_DIR ]]; then
mkdir $ZSH_CACHE_DIR
fi
2020-06-11 14:18:03 +00:00
for file in ~/.zshrc.d/*; do
source "$file"
done
2019-05-15 08:16:42 +00:00
source $ZSH/oh-my-zsh.sh
2021-08-09 08:03:32 +00:00
source /home/vincent/.config/broot/launcher/bash/br
2022-04-05 20:10:43 +00:00
autoload -U +X bashcompinit && bashcompinit
if [ -x /usr/bin/nomad ]; then
complete -o nospace -C /usr/bin/nomad nomad
fi