2015-06-21 20:27:36 +00:00
|
|
|
source /usr/share/zsh/scripts/zgen/zgen.zsh
|
|
|
|
|
|
|
|
# check if there's no init script
|
|
|
|
if ! zgen saved; then
|
|
|
|
echo "Creating a zgen save"
|
|
|
|
|
|
|
|
#zgen oh-my-zsh
|
|
|
|
|
|
|
|
# plugins
|
|
|
|
#zgen oh-my-zsh plugins/gitfast
|
|
|
|
#zgen oh-my-zsh plugins/sudo
|
|
|
|
#zgen oh-my-zsh plugins/command-not-found
|
|
|
|
#zgen load zsh-users/zsh-syntax-highlighting
|
|
|
|
|
|
|
|
## completions
|
|
|
|
#zgen load zsh-users/zsh-completions src
|
|
|
|
|
|
|
|
# theme
|
|
|
|
zgen oh-my-zsh themes/juanghurtado
|
|
|
|
|
|
|
|
# save all to init script
|
|
|
|
zgen save
|
|
|
|
fi
|
|
|
|
|
2014-01-10 23:18:09 +00:00
|
|
|
alias sudo='sudo '
|
|
|
|
alias tasks="ps -u fab"
|
|
|
|
alias update-grub="grub-mkconfig -o /boot/grub/grub.cfg"
|
|
|
|
alias sml2p='/home/fab/.Sync-my-L2P/Sync-my-L2P.run'
|
2015-06-21 20:27:59 +00:00
|
|
|
alias update-mirrors='sh -c "reflector -p http -l 50 --sort rate | tee /etc/pacman.d/mirrorlist"'
|
2014-01-10 23:18:09 +00:00
|
|
|
alias ssh='ssh '
|
|
|
|
alias ping='ping '
|
2014-02-19 20:36:40 +00:00
|
|
|
alias aur-update='pacaur -Syu --devel --noconfirm'
|
2014-01-10 23:18:09 +00:00
|
|
|
alias clear-orphans='pacman -Rns $(pacman -Qqdt)'
|
|
|
|
alias rmtex='rm *.log; rm *.aux'
|
2014-04-15 22:52:11 +00:00
|
|
|
alias chibernate='cinnamon-screensaver-command --lock && sudo systemctl hibernate'
|
2014-01-10 23:18:09 +00:00
|
|
|
alias load-vboxdrivers='modprobe -a vboxdrv vboxnetadp vboxnetflt'
|
2014-03-01 12:49:03 +00:00
|
|
|
alias mount-chroot='sudo mount /mnt/tmpfs; sudo mkdir /mnt/tmpfs/chroot{32,64}'
|
2014-12-04 22:33:16 +00:00
|
|
|
alias open='xdg-open'
|
2014-02-19 20:36:40 +00:00
|
|
|
# british mnemonic finder
|
|
|
|
alias mnemonic="cat /usr/share/dict/british | sed -r -n '/^.{5,10}$/p' | sed \"s/'//g\" | tr '[:upper:]' '[:lower:]' | shuf -n 1"
|
2014-01-17 13:01:16 +00:00
|
|
|
#overwrite "default(?)" with my own function
|
|
|
|
alias cdt='cdtemp'
|
2014-07-17 10:02:58 +00:00
|
|
|
alias gst='git status'
|
2014-07-27 16:46:17 +00:00
|
|
|
alias gdf='git diff'
|
|
|
|
alias gdfs='git diff --staged'
|
2014-07-27 16:49:38 +00:00
|
|
|
alias gad='git add'
|
|
|
|
alias gcm='git commit'
|
2014-01-11 16:18:48 +00:00
|
|
|
alias resource='source ~/.zshrc'
|
2015-06-21 20:33:49 +00:00
|
|
|
alias bootlfs='sudo screen -d -m VBoxHeadless -s LFS > /dev/null'
|
|
|
|
alias emacs='emacs -nw'
|
|
|
|
alias aiawiki='ssh aia -L 80:ldap2:80'
|
|
|
|
alias rbtv='livestreamer twitch.tv/rocketbeanstv &'
|
2015-06-21 20:28:43 +00:00
|
|
|
alias ls='ls --color=auto'
|
2014-01-10 23:18:09 +00:00
|
|
|
if [ -f .zsh_environment ]
|
|
|
|
then
|
|
|
|
source ~/.zsh_environment
|
|
|
|
fi
|
|
|
|
#for accounts whithout root
|
|
|
|
if [ -f .zsh_grml ]
|
|
|
|
then
|
|
|
|
source ~/.zsh_grml
|
|
|
|
fi
|
|
|
|
#for untrusted machines
|
|
|
|
if [ -f .zsh_sensitive ]
|
|
|
|
then
|
|
|
|
source ~/.zsh_sensitive
|
|
|
|
fi
|
|
|
|
source ~/.zsh_functions
|
|
|
|
export EDITOR=vim
|
2015-05-02 11:11:06 +00:00
|
|
|
export ASPROOT=~/.asp
|
2015-06-21 20:33:49 +00:00
|
|
|
export PATH=$PATH:/home/fab/bin:/home/fab/.gem/ruby/2.2.0/bin
|
|
|
|
export LFS=/mnt/lfs
|
2014-01-27 15:37:40 +00:00
|
|
|
|
|
|
|
#vi mode
|
|
|
|
bindkey -v
|
|
|
|
export KEYTIMEOUT=1
|
2015-06-21 20:33:49 +00:00
|
|
|
bindkey -M viins 'fd' vi-cmd-mode
|
2014-01-27 16:26:31 +00:00
|
|
|
bindkey -M vicmd 'k' history-beginning-search-backward
|
|
|
|
bindkey -M vicmd 'j' history-beginning-search-forward
|
|
|
|
|
2014-01-27 15:37:40 +00:00
|
|
|
#backspace working after returning from command mode
|
|
|
|
bindkey '^?' backward-delete-char
|
|
|
|
bindkey '^h' backward-delete-char
|
2015-06-21 20:33:49 +00:00
|
|
|
|
2015-06-21 20:35:33 +00:00
|
|
|
if [ -f /usr/share/doc/pkgfile/command-not-found.zsh ]
|
|
|
|
then
|
|
|
|
source /usr/share/doc/pkgfile/command-not-found.zsh
|
|
|
|
fi
|
2015-06-21 20:33:49 +00:00
|
|
|
|
2015-06-21 20:35:33 +00:00
|
|
|
if [ -f /usr/bin/virtualenvwrapper_lazy.sh ]
|
|
|
|
then
|
|
|
|
# Automatically source virtualenv
|
|
|
|
source /usr/bin/virtualenvwrapper_lazy.sh
|
|
|
|
fi
|