-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc
79 lines (63 loc) · 2.48 KB
/
dot_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
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# This actually is already the standard. However it gets only set in the oh-my-zsh startup script
# Since we need it configured in the next block, it is manually set here
ZSH_CUSTOM=$ZSH/custom
# Which system are we on? And source different zsh configs
if [[ $(uname) == "Darwin" ]]; then
echo "Loading MacOs specific zsh configs from $ZSH_CUSTOM/os/mac.zsh"
source "$ZSH_CUSTOM"/os/mac.zsh
elif command -v apt > /dev/null; then
echo "Loading debian-based specific zsh configs from $ZSH_CUSTOM/os/debian.zsh"
source "$ZSH_CUSTOM"/os/debian.zsh
else
echo 'Unknown OS! Only ~/.zshrc will be parsed'
fi
# Add home bin to path (if not exists)
echo $PATH | grep -q "$HOME\/bin[^/]"
if [[ $? -ne 0 ]]; then
echo "Adding previously missing $HOME/bin to PATH"
export PATH=$HOME/bin:$PATH
fi
# Add ~/.local/bin to path (if not exists)
echo $PATH | grep -q "$HOME\/.local\/bin[^/]"
if [[ $? -ne 0 ]]; then
echo "Adding previously missing $HOME/.local/bin to PATH"
export PATH=$HOME/.local/bin:$PATH
fi
# Fix dircolors for selenized theme (see: https://github.com/jan-warchol/selenized/tree/master/other-apps/dircolors)
export LS_COLORS="$LS_COLORS:ow=1;7;34:st=30;44:su=30;41"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="xiong-chiamiov-plus"
# Uncomment the following line to display red dots whilst waiting for completion.
# You can also set it to another string to have that shown instead of the default red dots.
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
COMPLETION_WAITING_DOTS="true"
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
gitignore
docker-compose
docker
diff-so-fancy
fzf
zsh-interactive-cd
)
source $ZSH/oh-my-zsh.sh
# User configuration
export Qt6_DIR="/home/pascal/Qt/6.8.0/gcc_64/lib/cmake/"
export QT_DIR="$HOME/Qt"
export CMAKE_PREFIX_PATH="$Qt6_DIR:$QT_DIR"
#Alias
##zshcofig
alias zshconfig="nano ~/.zshrc"
##directories
alias repos="cd ~/repos"