summaryrefslogtreecommitdiffstats
path: root/zshrc
blob: 33146bf1269fad05a9eccf400febe51f7bd08432 (plain)
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
export ZSH="/home/salad/.oh-my-zsh"
PATH="/home/salad/perl5/bin${PATH:+:${PATH}}"; export PATH;
PERL5LIB="/home/salad/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/home/salad/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"/home/salad/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/home/salad/perl5"; export PERL_MM_OPT;

ZSH_THEME="geoffredside"
plugins=(git)

source $ZSH/oh-my-zsh.sh

autoload -U add-zsh-hook
on_cd() { exa -l --color=auto; }
add-zsh-hook chpwd on_cd

alias vim="nvim"
alias emacs="TERM=xterm-256color emacs -nw"
alias apti="sudo apt-get install"
alias aptu="sudo apt-get update && sudo apt-get upgrade"
alias cfg="nvim ~/.config/bspwm/bspwmrc ~/.config/sxhkd/sxhkdrc ~/.zshrc ~/.config/polybar/config"
alias worldmon="sh ~/.local/share/mon.sh"
alias ls='exa -l'
alias grep='grep -n --color=auto'
alias -g hh="&! ; [[ $? -eq 0 ]] && exit"
alias weather="curl --silent wttr.in/lyon"
alias wttr="curl --silent wttr.in/lyon | head -n 7"
alias mk="make -j5"
alias ma="make asan -j5"
alias mkr="make run -j5"
alias mar="make asan run -j5"
alias mkf="make fclean"
alias norminette="~/.norminette/norminette.rb"
alias cp='/bin/cp -iv'
alias mv='/bin/mv -iv'
alias rm='/bin/rm -v'
alias ln='/bin/ln -v'
alias mkdir='/bin/mkdir -v'
alias rmdir='/bin/rmdir -v'
alias chmod='/bin/chmod -v'
alias chown='/usr/sbin/chown -v'
alias grep='/usr/bin/grep --color'
alias srcnt="find . -type f -name '*.c' -exec cat {} \; | sed '/^\//d' | sed '/^\*/d' | sed '/^ \*/d' | sed '/^\/\//d' | sed '/^$/d' | wc -l"
alias tohex='printf "%x\n"'
alias gl="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d %C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all"
alias IP="curl ifconfig.me"
alias poweroff="sudo poweroff"