aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-10-21 19:55:36 +0200
committerCharles <sircharlesaze@gmail.com>2019-10-21 19:55:36 +0200
commitfb9f1addd3360b450ba3f4cb04d781b4b8ffb0e9 (patch)
treeb2d47eeca1b383de4a3b97d4a4b0a18775812007 /.zshrc
parentf83b1d7b530ebcc61bdd288bee08156124be6652 (diff)
parentc9600030d38442c92ead185fcd8307955c156ec3 (diff)
downloaddotfiles-fb9f1addd3360b450ba3f4cb04d781b4b8ffb0e9.tar.gz
dotfiles-fb9f1addd3360b450ba3f4cb04d781b4b8ffb0e9.tar.bz2
dotfiles-fb9f1addd3360b450ba3f4cb04d781b4b8ffb0e9.zip
Merge branch 'master' of https://github.com/HappyTramp/dotfiles
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc27
1 files changed, 24 insertions, 3 deletions
diff --git a/.zshrc b/.zshrc
index a2b4092..949b8d9 100644
--- a/.zshrc
+++ b/.zshrc
@@ -1,13 +1,22 @@
export ZSH="$HOME/.oh-my-zsh"
-ZSH_THEME="pure"
+ZSH_THEME=""
+# ZSH_THEME="robbyrussell"
HYPHEN_INSENSITIVE="true"
DISABLE_MAGIC_FUNCTIONS=true
HIST_STAMPS="dd/mm/yyyy"
-plugins=(colorize command-not-found git zsh-syntax-highlighting)
+#school stuff
+ZSH_DISABLE_COMPFIX=true
+
+export FPATH="$FPATH:$HOME/.zsh/pure"
+
+plugins=(colorize git zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
+autoload -U promptinit; promptinit
+prompt pure
+
bindkey -v
export KEYTIMEOUT=1
@@ -48,6 +57,8 @@ alias node="nodejs"
alias python="python3.7"
alias info="info --vi-keys"
alias moula="gcc -Wall -Wextra -Werror"
+alias norm="norminette"
+alias normch="norm *.c *.h"
alias list-c-includes-paths="echo | gcc -E -Wp,-v -"
alias yoump3='youtube-dl --extract-audio --audio-format mp3'
alias adg="sudo apt update && sudo apt upgrade"
@@ -61,6 +72,16 @@ function chpwd() {
fi
}
+# behavior on enter
+# function precmd() {
+# echo $0;
+# if ["${0}" -eq ""]; then
+# ls
+# else
+# $1
+# fi;
+# }
+
export DOTFILES=$HOME/dotfiles
alias zshrc="vim $DOTFILES/.zshrc && source $DOTFILES/.zshrc"
alias vimrc="vim $DOTFILES/.vimrc"
@@ -75,7 +96,7 @@ bindkey -M menuselect 'j' vi-down-line-or-history
bindkey -v '^?' backward-delete-char
# add command-not-found package suggestion
-source /etc/zsh_command_not_found
+#source /etc/zsh_command_not_found
# add /sbin to $PATH
export PATH="/sbin:/usr/local/sbin:/usr/sbin:$PATH"