aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc40
1 files changed, 40 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
new file mode 100644
index 0000000..05bc400
--- /dev/null
+++ b/.zshrc
@@ -0,0 +1,40 @@
+setopt histignorealldups sharehistory
+
+# Use emacs keybindings even if our EDITOR is set to vi
+bindkey -e
+
+# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
+HISTSIZE=1000
+SAVEHIST=1000
+HISTFILE=~/.zsh_history
+
+# autojump
+if [ ! -d /usr/share/autojump ]; then
+ echo 'Installing autojump ... '
+ sudo apt install autojump
+fi
+. /usr/share/autojump/autojump.zsh
+
+# proxy
+export http_proxy='http://127.0.0.1:8118'
+export https_proxy='http://127.0.0.1:8118'
+
+# zplug
+if [ ! -d ~/.zplug ]; then
+ echo 'Installing zplug ... '
+ git clone [email protected]:zplug/zplug.git ~/.zplug
+fi
+source ~/.zplug/init.zsh
+zplug "zsh-users/zsh-completions"
+zplug "zsh-users/zsh-syntax-highlighting"
+zplug "dracula/zsh", as:theme
+if ! zplug check --verbose; then
+ printf "Install? [y/N]: "
+ if read -q; then
+ echo; zplug install
+ fi
+fi
+zplug load --verbose
+
+# fzf
+[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh