configfiles/zsh/.zsh/10-base.zsh

51 lines
1.1 KiB
Bash
Raw Normal View History

2015-05-29 20:59:40 +02:00
# Lines configured by zsh-newuser-install
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/madmaurice/.zshrc'
zstyle ':completion:*' menu select
autoload -Uz compinit
compinit
autoload -U colors && colors
2015-05-30 03:29:38 +02:00
PROMPT="%{$fg[red]%}> %{$reset_color%}"
RPROMPT="%{$fg[red]%}%~%{$reset_color%}"
2015-05-29 20:59:40 +02:00
alias ls="ls --color=auto"
alias cd..="cd .."
alias ..="cd .."
alias disks="df -h"
2015-09-02 15:11:25 +02:00
alias space="du -shx"
2015-05-29 20:59:40 +02:00
alias emacs="vim"
alias gitlog="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
2015-06-19 03:35:12 +02:00
alias sf="screenfetch"
2015-05-29 20:59:40 +02:00
catwhich() {
cat $(which $@)
}
runfor() {
while read line; do
$@ $line
done
}
2015-06-16 16:18:49 +02:00
mkpasswd() {
LEN=${1:-30}
2015-07-12 18:30:53 +02:00
base64 < /dev/urandom | fold -w $LEN | sed 1q
2015-06-16 16:18:49 +02:00
}
2015-07-12 18:30:53 +02:00
mkpasswd2() {
LEN=${1:-30}
tr -cd ' -~' < /dev/urandom | fold -w $LEN | sed 1q
}
2015-06-16 16:18:49 +02:00
2015-05-29 20:59:40 +02:00
export EDITOR="vim"
2015-05-30 03:29:38 +02:00
# Load any local only zshrc
[ -f "$HOME/.zshrc.local" ] && source "$HOME/.zshrc.local"
2015-05-29 20:59:40 +02:00
# End of lines added by compinstall