dotfiles/zsh/aliases.zsh

51 lines
1019 B
Bash
Raw Normal View History

2016-08-22 12:04:24 +02:00
# Some aliases
# v is shorter
alias v="$EDITOR"
# htop is better
alias top="htop"
# Vim like alias
alias :q="exit"
2016-08-31 10:02:52 +02:00
alias make="make.sh"
2016-08-22 12:04:24 +02:00
# Avoid typos
alias ake="make"
# My pdf reader
alias pdf="evince"
# Auto color on pacman
alias pacman='pacman --color=auto'
# clean for cmake files
2017-01-04 13:53:54 +01:00
alias cclean='rm -rf `find . -name "CMakeCache.txt"` `find . -name "cmake_install.cmake"` `find . -name "CMakeFiles"` `find . -name "Makefile"`'
2016-08-22 12:04:24 +02:00
# Some games
alias war3="optirun wine /home/thomas/.wine/drive_c/Program\ Files/Warcraft/War3.exe -opengl"
alias nox="cd /home/thomas/.wine/drive_c/Westwood/Nox/; optirun wine Game.exe; cd -1"
# Start jekyll server easily
alias jekyll="bundle exec jekyll serve"
# Some cd aliases
alias cd..="cd .."
alias cd...="cd ../.."
alias cd....="cd ../../.."
alias ls="ls -h --color --group-directories-first"
2016-08-31 10:02:52 +02:00
alias sl="ls"
2016-08-22 12:04:24 +02:00
alias lsd="ls"
2016-09-08 09:16:44 +02:00
# Jump
alias j="jump"
2017-03-13 10:13:13 +01:00
# Initialize thefuck
2017-03-23 17:07:35 +01:00
command -v thefuck > /dev/null 2>&1
# fuck aliases
if [ $? -eq 0 ]; then
eval $(thefuck --alias)
fi