summaryrefslogtreecommitdiff
path: root/zsh/index.zsh
blob: 80c2e376a63469d60e8bc7229759ae4459472ad9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -e
# End of lines configured by zsh-newuser-install
#
# The following lines were added by compinstall
zstyle :compinstall filename '/home/aleksei/.zshrc'
autoload -Uz compinit
compinit
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*' menu select
# End lf lines added by compinstall

# cdr utility - see zshcontrib(1)
autoload -Uz chpwd_recent_dirs cdr add-zsh-hook
add-zsh-hook chpwd chpwd_recent_dirs
zstyle ':completion:*:*:cdr:*:*' menu selection


source ~/.config/zsh/prompt.zsh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

alias ls='ls --color=auto'
alias t='tmux'
alias n='nvim'
# dot at the beginning makes shell to cd into last dir selected in ranger
alias rr='. ranger'
alias lg=lazygit
# connect to my earbuds
alias b='bluetoothctl connect E4:92:82:B5:80:1F'
alias p='cd ~/projects'
alias c='cd ~/.config'
alias dark="lookandfeeltool -a org.kde.breezedark.desktop"
alias light="lookandfeeltool -a org.kde.breeze.desktop"
alias leave="qdbus6 org.kde.Shutdown /Shutdown logout"

eval $(ssh-agent -s) >> /dev/null
# Set up fzf key bindings and fuzzy completion
source <(fzf --zsh)

export EDITOR=nvim
export MANPAGER='nvim +Man!'