-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc.zsh
executable file
·100 lines (60 loc) · 2.07 KB
/
zshrc.zsh
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
92
93
94
95
96
97
98
99
100
##- 𝒛𝖘𝖍 𝖘𝖕𝖊𝖑𝖑𝖇𝖔𝖔𝖐
#varaible for configs folder
CONFIGS="$HOME/configs";
##- set up cross os mappings
source ${CONFIGS}/bash/x-OS-mapping.sh;
##- VARIABLES
PLUGINS="${CONFIGS}/plugins";
##- zsh related
alias config="nano ~/.zshrc";
# update zsh settings
alias reload='source ~/.zshrc';
#tests
alias testbold='bold=$(tput bold) && normal=$(tput sgr0) && echo "this is ${bold}bold${normal} but this aint"';
alias testcolor='${PLUGINS}/Color-Scripts/color-scripts/colorview';
alias test256color='${PLUGINS}/Color-Scripts/test-color-support/color-support2';
##- small fixes
#make mount look prettier
alias mount='mount |column -t';
#replace rm with trash
if [ -x "$(command -v trash)" ]; then
alias rm='trash';
fi
# Run nano cursor always visible, use the mouse, and disable hard wrapping.
alias nano='nano --const --mouse';
# function to run vscode as admin
function sudocode () {
sudo code --user-data-dir="~/.vscode-root"
}
##- Scripts
source ${CONFIGS}/movement/movement.zsh;
alias .='cd ..'; # this is here because it messes up bash
source ${CONFIGS}/apt/apt.zsh;
source ${CONFIGS}/image-utilities/image-utilities.zsh
source ${CONFIGS}/list/list.zsh;
source ${CONFIGS}/npm/npm.zsh;
source ${CONFIGS}/nextcloud/nextcloud.zsh;
source ${CONFIGS}/git/git.zsh;
##- Theme Settings
#- Necessary to enable 256 colors in terminal
export TERM="xterm-256color"
POWERLEVEL9K_MODE="nerdfont-complete"
ZSH_DISABLE_COMPFIX=true
source ${CONFIGS}/prompt.zsh
##- PLUGINS
##- syntax highlighting
source ${PLUGINS}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
##- Zsh Auto-suggestions
source ${PLUGINS}/zsh-autosuggestions/zsh-autosuggestions.zsh
##- jump directories
# eval "$(jump shell)"
# add jump integration to ranger
source ${PLUGINS}/jump-ranger/jump-ranger.zsh
##- warp door
wd() {
source ${PLUGINS}/wd/wd.sh;
}
##- you should use
source ${PLUGINS}/zsh-you-should-use/you-should-use.plugin.zsh
##### this is the end of the file. anything beyond here has been auto appended by some trash scripts
#######################