summaryrefslogtreecommitdiff
path: root/zsh/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/.zshrc')
-rw-r--r--zsh/.zshrc160
1 files changed, 51 insertions, 109 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 41c6603..eb0636d 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -1,122 +1,64 @@
1# If you come from bash you might have to change your $PATH. 1# history
2# export PATH=$HOME/bin:/usr/local/bin:$PATH 2HISTFILE=~/.cache/zsh/history
3HISTSIZE=1000
4SAVEHIST=1000
5setopt appendhistory hist_ignore_all_dups hist_ignore_space
3 6
4# Path to your oh-my-zsh installation. 7#exports
5export ZSH="/home/fd0e/.oh-my-zsh"
6export VISUAL=nvim 8export VISUAL=nvim
7export EDITOR="$VISUAL" 9export EDITOR="$VISUAL"
8export BROWSER=firefox 10export BROWSER=firefox
9export PATH=$PATH:$HOME/.local/bin:$HOME/bin 11export PATH=$PATH:$HOME/.local/bin:$HOME/bin
10export XDG_CURRENT_DESKTOP=bspwm 12export XDG_CURRENT_DESKTOP=spectrwm
11 13
12# Set name of the theme to load --- if set to "random", it will 14setopt autocd extendedglob nomatch globdots correctall
13# load a random theme each time oh-my-zsh is loaded, in which case, 15unsetopt beep
14# to know which specific one was loaded, run: echo $RANDOM_THEME 16bindkey -v
15# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes 17
16ZSH_THEME="sammy" 18# completions
17 19zstyle :compinstall filename '/home/x/.zshrc'
18# Set list of themes to pick from when loading at random 20autoload -U colors && colors
19# Setting this variable when ZSH_THEME=random will cause zsh to load 21autoload -Uz compinit && compinit
20# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/ 22zstyle ':completion:*' menu select
21# If set to an empty array, this variable will have no effect. 23zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
22# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) 24#zstyle ':completion:*:descriptions' format '%U%B%d%b%u'
23 25#zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b'
24# Uncomment the following line to use case-sensitive completion. 26
25# CASE_SENSITIVE="true" 27# sources
26 28source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
27# Uncomment the following line to use hyphen-insensitive completion. 29source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
28# Case-sensitive completion must be off. _ and - will be interchangeable. 30
29# HYPHEN_INSENSITIVE="true" 31# prompt
30 32PROMPT=$'\n'"%B%F{240}%m "$'\n'"%(?.%F{248}▲.%F{red}?%?)%f "
31# Uncomment the following line to disable bi-weekly auto-update checks. 33git_branch() {
32# DISABLE_AUTO_UPDATE="true" 34 git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
33 35}
34# Uncomment the following line to automatically update without prompting. 36setopt PROMPT_SUBST
35# DISABLE_UPDATE_PROMPT="true" 37RPROMPT='%9c%{%F{green}%}$(git_branch)%{%F{none}%} $ '
36 38
37# Uncomment the following line to change how often to auto-update (in days). 39# aliases
38# export UPDATE_ZSH_DAYS=13 40alias ls='ls --color=auto'
39 41alias ll='ls --color=auto -al'
40# Uncomment the following line if pasting URLs and other text is messed up. 42alias key="vim $HOME/.config/spectrwm/keybindings.conf"
41# DISABLE_MAGIC_FUNCTIONS=true 43alias wm="vim ~/.config/spectrwm/spectrwm.conf"
42
43# Uncomment the following line to disable colors in ls.
44# DISABLE_LS_COLORS="true"
45
46# Uncomment the following line to disable auto-setting terminal title.
47# DISABLE_AUTO_TITLE="true"
48
49# Uncomment the following line to enable command auto-correction.
50# ENABLE_CORRECTION="true"
51
52# Uncomment the following line to display red dots whilst waiting for completion.
53# COMPLETION_WAITING_DOTS="true"
54
55# Uncomment the following line if you want to disable marking untracked files
56# under VCS as dirty. This makes repository status check for large repositories
57# much, much faster.
58# DISABLE_UNTRACKED_FILES_DIRTY="true"
59
60# Uncomment the following line if you want to change the command execution time
61# stamp shown in the history command output.
62# You can set one of the optional three formats:
63# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
64# or set a custom format using the strftime function format specifications,
65# see 'man strftime' for details.
66# HIST_STAMPS="mm/dd/yyyy"
67
68# Would you like to use another custom folder than $ZSH/custom?
69# ZSH_CUSTOM=/path/to/new-custom-folder
70
71# Which plugins would you like to load?
72# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
73# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
74# Example format: plugins=(rails git textmate ruby lighthouse)
75# Add wisely, as too many plugins slow down shell startup.
76plugins=(git sudo extract python common-aliases)
77
78source $ZSH/oh-my-zsh.sh
79
80# User configuration
81
82# export MANPATH="/usr/local/man:$MANPATH"
83
84# You may need to manually set your language environment
85# export LANG=en_US.UTF-8
86
87# Preferred editor for local and remote sessions
88# if [[ -n $SSH_CONNECTION ]]; then
89# export EDITOR='vim'
90# else
91# export EDITOR='mvim'
92# fi
93
94# Compilation flags
95# export ARCHFLAGS="-arch x86_64"
96
97# Set personal aliases, overriding those provided by oh-my-zsh libs,
98# plugins, and themes. Aliases can be placed here, though oh-my-zsh
99# users are encouraged to define aliases within the ZSH_CUSTOM folder.
100# For a full list of active aliases, run `alias`.
101#
102# Example aliases
103# alias zshconfig="mate ~/.zshrc"
104# alias ohmyzsh="mate ~/.oh-my-zsh"
105alias key="vim $HOME/.config/sxhkd/sxhkdrc"
106alias wm="vim ~/.config/bspwm/bspwmrc"
107alias f="ranger" 44alias f="ranger"
108alias nu="nmcli connection up "
109alias weather="curl wttr.in" 45alias weather="curl wttr.in"
110alias py="/bin/python" 46alias py="/usr/bin/python"
111alias py2="/bin/python2"
112alias pg="ping google.com" 47alias pg="ping google.com"
113alias pubip="curl ipinfo.io/ip" 48alias pubip="curl ipinfo.io/ip"
114alias k="pkill " 49alias k="pkill "
115alias m="cmus" 50alias m="cmus"
116alias vimrc="vim $HOME/.config/nvim/init.vim" 51alias vimrc="vim $HOME/.config/nvim/init.vim"
117alias poly="vim $HOME/.config/polybar/config" 52alias v="nvim"
118alias v="/usr/bin/nvim" 53alias vim="nvim"
119alias vim="/usr/bin/nvim" 54alias sudo="sudo "
120alias sudo="doas " 55alias parrot="VBoxManage startvm Parrot"
56
57up() {
58 curl -F "file=@$*" https://0x0.st | xclip -selection clipboard
59}
60
61dict() {
62 curl dict://dict.org/d:$*
63}
121 64
122source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh