-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
91 lines (67 loc) · 1.76 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
unsetopt beep
# PROMPT='%~%# '
PS1='%F{cyan}%n@%m %F{yellow}%~ %F{reset}%# '
export EDITOR="nvim"
export PATH="/home/arismav/.local/bin":$PATH
export PATH="$PATH:/opt/nvim-linux-x86_64/bin"
export HELIX_RUNTIME=~/software/helix/runtime
# export PATH="$HOME/.cargo/bin:$PATH"
. "$HOME/.cargo/env"
# Aliases
alias e='$EDITOR'
alias f='pipx run --spec ranger-fm ranger'
alias jl='julia'
alias hm='cd ~'
alias gc='git commit'
alias gf='git fetch'
alias ga='git add'
alias gd='git diff'
alias gs='git status'
alias gp='git pull'
alias gP='git push'
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias diff='diff --color=auto'
alias tree='tree -C'
alias nt='$EDITOR ~/Documents/notes/$(date +"%Y%m%d%H%M%S.md")'
alias td='$EDITOR ~/Documents/notes/TODO.md'
gacP() {
target_folder="$1"
if [ -z "$target_folder" ]; then
echo "Please provide a target folder as argument."
return 1
fi
git -C "$target_folder" add .
git -C "$target_folder" commit
git -C "$target_folder" push
}
# vi mode
bindkey -v
setopt vi
KEYTIMEOUT=1
# change cursor shape in vi mode
zle-keymap-select () {
if [[ $KEYMAP == vicmd ]]; then
# the command mode for vi
echo -ne "\e[2 q"
else
# the insert mode for vi
echo -ne "\e[5 q"
fi
}
precmd_functions+=(zle-keymap-select)
zle -N zle-keymap-select
# Automatic stuff below this line
# >>> juliaup initialize >>>
# !! Contents within this block are managed by juliaup !!
path=('/home/arismav/.juliaup/bin' $path)
export PATH
# <<< juliaup initialize <<<
# The following lines were added by compinstall
zstyle :compinstall filename '/home/arismav/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall