.dotfiles/zshrc

52 lines
1.5 KiB
Bash
Raw Normal View History

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'
2014-07-12 00:45:31 +00:00
alias updatemirrors='reflector -l 20 --sort rate --save /etc/pacman.d/mirrorlist'
alias ssh='ssh '
alias ping='ping '
2014-02-19 20:36:40 +00:00
alias aur-update='pacaur -Syu --devel --noconfirm'
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'
alias load-vboxdrivers='modprobe -a vboxdrv vboxnetadp vboxnetflt'
alias mount-chroot='sudo mount /mnt/tmpfs; sudo mkdir /mnt/tmpfs/chroot{32,64}'
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'
#Now with extra shibe
alias wow='git status'
alias very='git'
alias much='git'
alias such='git'
alias resource='source ~/.zshrc'
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
2014-03-01 20:55:31 +00:00
export PATH=$PATH:/home/fab/bin:/home/fab/.gem/ruby/2.1.0/bin
2014-01-27 15:37:40 +00:00
#vi mode
bindkey -v
export KEYTIMEOUT=1
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