diff options
author | Shubham Saini <shubham6405@gmail.com> | 2019-12-02 12:21:04 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2019-12-02 12:21:04 +0000 |
commit | a42df546ce34429759a20bc2c4c240de045dbd0a (patch) | |
tree | 4e7153d41d6a1b710f8002f2eb7b64231889b6cf /zsh |
using stow
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.zshrc | 144 |
1 files changed, 144 insertions, 0 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc new file mode 100644 index 0000000..6686e55 --- /dev/null +++ b/zsh/.zshrc | |||
@@ -0,0 +1,144 @@ | |||
1 | # If you come from bash you might have to change your $PATH. | ||
2 | # export PATH=$HOME/bin:/usr/local/bin:$PATH | ||
3 | |||
4 | # Path to your oh-my-zsh installation. | ||
5 | export ZSH="/home/ssaini/.oh-my-zsh" | ||
6 | export VISUAL=nvim | ||
7 | export EDITOR="$VISUAL" | ||
8 | export BROWSER=/opt/brave-v1.3.43-linux-x64/brave | ||
9 | export XDG_CURRENT_DESKTOP=bspwm | ||
10 | |||
11 | # Set name of the theme to load --- if set to "random", it will | ||
12 | # load a random theme each time oh-my-zsh is loaded, in which case, | ||
13 | # to know which specific one was loaded, run: echo $RANDOM_THEME | ||
14 | # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | ||
15 | ZSH_THEME="gianu" | ||
16 | SPACESHIP_CHAR_SYMBOL=" " | ||
17 | SPACESHIP_PROMPT_ADD_NEWLINE=false | ||
18 | |||
19 | # Set list of themes to pick from when loading at random | ||
20 | # Setting this variable when ZSH_THEME=random will cause zsh to load | ||
21 | # a theme from this variable instead of looking in ~/.oh-my-zsh/themes/ | ||
22 | # If set to an empty array, this variable will have no effect. | ||
23 | # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) | ||
24 | |||
25 | # Uncomment the following line to use case-sensitive completion. | ||
26 | # CASE_SENSITIVE="true" | ||
27 | |||
28 | # Uncomment the following line to use hyphen-insensitive completion. | ||
29 | # Case-sensitive completion must be off. _ and - will be interchangeable. | ||
30 | # HYPHEN_INSENSITIVE="true" | ||
31 | |||
32 | # Uncomment the following line to disable bi-weekly auto-update checks. | ||
33 | # DISABLE_AUTO_UPDATE="true" | ||
34 | |||
35 | # Uncomment the following line to automatically update without prompting. | ||
36 | # DISABLE_UPDATE_PROMPT="true" | ||
37 | |||
38 | # Uncomment the following line to change how often to auto-update (in days). | ||
39 | # export UPDATE_ZSH_DAYS=13 | ||
40 | |||
41 | # Uncomment the following line if pasting URLs and other text is messed up. | ||
42 | # DISABLE_MAGIC_FUNCTIONS=true | ||
43 | |||
44 | # Uncomment the following line to disable colors in ls. | ||
45 | # DISABLE_LS_COLORS="true" | ||
46 | |||
47 | # Uncomment the following line to disable auto-setting terminal title. | ||
48 | # DISABLE_AUTO_TITLE="true" | ||
49 | |||
50 | # Uncomment the following line to enable command auto-correction. | ||
51 | # ENABLE_CORRECTION="true" | ||
52 | |||
53 | # Uncomment the following line to display red dots whilst waiting for completion. | ||
54 | # COMPLETION_WAITING_DOTS="true" | ||
55 | |||
56 | # Uncomment the following line if you want to disable marking untracked files | ||
57 | # under VCS as dirty. This makes repository status check for large repositories | ||
58 | # much, much faster. | ||
59 | # DISABLE_UNTRACKED_FILES_DIRTY="true" | ||
60 | |||
61 | # Uncomment the following line if you want to change the command execution time | ||
62 | # stamp shown in the history command output. | ||
63 | # You can set one of the optional three formats: | ||
64 | # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | ||
65 | # or set a custom format using the strftime function format specifications, | ||
66 | # see 'man strftime' for details. | ||
67 | # HIST_STAMPS="mm/dd/yyyy" | ||
68 | |||
69 | # Would you like to use another custom folder than $ZSH/custom? | ||
70 | # ZSH_CUSTOM=/path/to/new-custom-folder | ||
71 | |||
72 | # Which plugins would you like to load? | ||
73 | # Standard plugins can be found in ~/.oh-my-zsh/plugins/* | ||
74 | # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | ||
75 | # Example format: plugins=(rails git textmate ruby lighthouse) | ||
76 | # Add wisely, as too many plugins slow down shell startup. | ||
77 | plugins=(git sudo extract python common-aliases) | ||
78 | |||
79 | source $ZSH/oh-my-zsh.sh | ||
80 | |||
81 | # User configuration | ||
82 | |||
83 | # export MANPATH="/usr/local/man:$MANPATH" | ||
84 | |||
85 | # You may need to manually set your language environment | ||
86 | # export LANG=en_US.UTF-8 | ||
87 | |||
88 | # Preferred editor for local and remote sessions | ||
89 | # if [[ -n $SSH_CONNECTION ]]; then | ||
90 | # export EDITOR='vim' | ||
91 | # else | ||
92 | # export EDITOR='mvim' | ||
93 | # fi | ||
94 | |||
95 | # Compilation flags | ||
96 | # export ARCHFLAGS="-arch x86_64" | ||
97 | |||
98 | # Set personal aliases, overriding those provided by oh-my-zsh libs, | ||
99 | # plugins, and themes. Aliases can be placed here, though oh-my-zsh | ||
100 | # users are encouraged to define aliases within the ZSH_CUSTOM folder. | ||
101 | # For a full list of active aliases, run `alias`. | ||
102 | # | ||
103 | # Example aliases | ||
104 | # alias zshconfig="mate ~/.zshrc" | ||
105 | # alias ohmyzsh="mate ~/.oh-my-zsh" | ||
106 | alias key="vim $HOME/.config/sxhkd/sxhkdrc" | ||
107 | alias wm="vim ~/.config/bspwm/bspwmrc" | ||
108 | alias f="ranger" | ||
109 | alias xi="sudo xbps-install " | ||
110 | alias xr="sudo xbps-remove -R " | ||
111 | alias xu="sudo xbps-install -Syu " | ||
112 | alias xo="sudo xbps-remove -o" | ||
113 | alias xob="sudo xbps-remove -O" | ||
114 | alias bb="cat /proc/acpi/bbswitch" | ||
115 | alias ncu="sudo nmcli connection up " | ||
116 | alias ncd="sudo nmcli connection down " | ||
117 | alias pg="ping google.com" | ||
118 | alias py="/bin/python" | ||
119 | alias pubip="curl ipinfo.io/ip" | ||
120 | alias k="pkill " | ||
121 | alias m="cmus" | ||
122 | alias vimrc="vim $HOME/.config/nvim/init.vim" | ||
123 | alias poly="vim $HOME/.config/polybar/config" | ||
124 | alias todo="cat ~/Projects/todo" | ||
125 | alias z="zathura" | ||
126 | alias v="/usr/bin/nvim" | ||
127 | alias site="cd ~/Projects/site/" | ||
128 | alias mt="udisksctl mount -b /dev/sda5" | ||
129 | alias sudo="sudo " | ||
130 | |||
131 | source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh | ||
132 | source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | ||
133 | |||
134 | |||
135 | # Import colorscheme from 'wal' asynchronously | ||
136 | # & # Run the process in the background. | ||
137 | # ( ) # Hide shell job control messages. | ||
138 | #(cat ~/.cache/wal/sequences &) | ||
139 | |||
140 | # Alternative (blocks terminal for 0-3ms) | ||
141 | #cat ~/.cache/wal/sequences | ||
142 | |||
143 | # To add support for TTYs this line can be optionally added. | ||
144 | #source ~/.cache/wal/colors-tty.sh | ||