-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
56 lines (43 loc) · 1.64 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
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$XDG_CONFIG_HOME/local/share"
export XDG_CACHE_HOME="$XDG_CONFIG_HOME/cache"
export EDITOR="nano"
export TERM="xterm-256color"
export WINIT_HIDPI_FACTOR=1
export GTK_THEME=Adwaita:dark
export QT_STYLE_OVERRIDE=adwaita
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:$GOPATH/bin
export PATH="$HOME/go/bin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
source "$XDG_CONFIG_HOME/zsh/git.sh"
# setup zsh
PROMPT='%F{cyan}%B%1~%f $(git_prompt) %F{green}➜%f%b '
# Initialize the autocompletion
autoload -Uz compinit && compinit -i
zstyle ':completion:*:*' ignored-patterns '*ORIG_HEAD'
host_list=($(cat ~/.ssh/config | grep 'Host ' | awk '{s = s $2 " "} END {print s}'))
zstyle ':completion:*:(ssh|scp|sftp):*' hosts $host_list
if [ -f $HOME/.profile ]; then
. $HOME/.profile
fi
export MOEBEL_CODE="$HOME/dev/furniture" # Change this to your code path aswell
if [ -f $MOEBEL_CODE/env/misc/zshrc ]; then
. $MOEBEL_CODE/env/misc/zshrc
fi
alias ls="ls -l"
alias initsubmodules="git submodule update --init --recursive"
alias tm="tmux attach || tmux"
alias tmn="tmux new"
alias ktm="killall -9 tmux"
alias dev="cd ~/dev"
alias dcom="docker compose"
alias doc="docker compose"
alias bssh="mkdir -p ~/.ssh/config.d && echo -e '\nHost *\n IdentityFile \"~/.ssh/id_ed25519_sk_backup\"\n IdentityFile \"~/.ssh/id_rsa\"\n' >> ~/.ssh/config.d/backup"
alias nssh="rm ~/.ssh/config.d/backup"
bindkey -e
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/local/bin/terraform terraform