-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
executable file
·72 lines (58 loc) · 1.74 KB
/
.zshrc
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Oh-my-zsh installation path
export ZSH="$HOME/.oh-my-zsh"
# Theme
ZSH_THEME="robbyrussell"
# Adds colors to ls
alias ls='ls --color=auto'
# Creates a tag file in the current folder
alias ctagsvim='ctags -R . --extras=+q --fields=+i -n'
# Fix Screen issues with bigger screens
alias fixscreen='xrandr -s 1 && xrandr -s 0'
# Neomutt ease of use
alias mutt='neomutt'
# Terminal emacs
alias emacst='emacsclient -t'
# Visual client emacs
alias emacsc='emacsclient -c'
# Use vim as less
alias less='/usr/share/nvim/runtime/macros/less.sh'
# Always suspend then hibernate
alias suspend='sudo systemctl suspend-then-hibernate'
# Dots while waiting for completion
COMPLETION_WAITING_DOTS="true"
# Improve history
setopt share_history
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
# Insensitive hyphen completion
HYPHEN_INSENSITIVE="true"
# Plugins to load
plugins=(
compleat
last-working-dir
vi-mode
)
# Bind keys for dircycle
bindkey "\e[1;6D" insert-cycledleft
bindkey "\e[1;6C" insert-cycledright
# Source oh-my-zsh
source $ZSH/oh-my-zsh.sh
# Change dir to last working dir on launch
lwd
# Up and down arrow fix for vi-mode
if [[ "${terminfo[kcuu1]}" != "" ]]; then
autoload -U up-line-or-beginning-search
zle -N up-line-or-beginning-search
bindkey "${terminfo[kcuu1]}" up-line-or-beginning-search
fi
if [[ "${terminfo[kcud1]}" != "" ]]; then
autoload -U down-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey "${terminfo[kcud1]}" down-line-or-beginning-search
fi
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
fpath+=${ZDOTDIR:-~}/.zsh_functions
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh