-
Notifications
You must be signed in to change notification settings - Fork 0
/
.myrc
54 lines (46 loc) · 1.37 KB
/
.myrc
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
alias k="kubectl"
alias kx="kubectl config use-context"
alias kxc="kubectl config current-context"
alias kf="kubectl port-forward"
alias dc="docker-compose"
alias gw="./gradlew"
alias mw="./mvnw"
alias mci="mvn clean install -DskipTests"
alias mcit="mvn clean install"
alias sc="scala-cli"
alias pg="pgcli -h localhost -U admin"
alias mk="make"
alias tx="tmux"
alias txa="tmux attach-session -t"
alias txm="tmuxinator"
alias gs="git status"
alias lg="lazygit"
alias ld="lazydocker"
alias vi="nvim"
alias ez="nvim ~/.zshrc"
alias src="source ~/.zshrc"
alias fz="fzf --preview=\"bat --color=always {}\""
alias fze='nvim $(fzf --preview="bat --color=always {}")'
alias ffc="fastfetch"
alias ff="fastfetch -c ~/.config/fastfetch/config.json"
alias cmx="cmatrix -absC cyan"
alias grep='grep --color=auto'
# To deal with "unknown terminal type" issues
alias ssh='TERM=xterm-256color ssh'
# Print each PATH entry on a separate line
alias path='echo -e ${PATH//:/\\n}'
function reinit() {
git submodule deinit --force .
git submodule update --init --recursive
}
function hyprplz() {
hyprctl --instance 0 'keyword misc:allow_session_lock_restore 1'
killall -9 hyprlock
hyprctl --instance 0 'dispatch exec hyprlock'
}
# Set up fzf key bindings and fuzzy completion
source <(fzf --zsh)
# enable mouse scroll for less (i.e. git log)
export LESS='-R --mouse'
export GIT_PAGER=less
export EDITOR=nvim