2016-08-22 11:04:24 +01:00
|
|
|
# Some aliases
|
|
|
|
|
|
|
|
# v is shorter
|
|
|
|
alias v="$EDITOR"
|
|
|
|
|
|
|
|
# htop is better
|
|
|
|
alias top="htop"
|
|
|
|
|
|
|
|
# Vim like alias
|
|
|
|
alias :q="exit"
|
|
|
|
|
|
|
|
# Avoid typos
|
|
|
|
alias ake="make"
|
|
|
|
|
2017-04-20 14:46:50 +01:00
|
|
|
# cake is way more stylish than cmake
|
|
|
|
alias cake="cmake"
|
|
|
|
|
2016-08-22 11:04:24 +01:00
|
|
|
# My pdf reader
|
|
|
|
alias pdf="evince"
|
|
|
|
|
|
|
|
# Auto color on pacman
|
2018-09-26 17:14:38 +01:00
|
|
|
command -v pacman > /dev/null 2>&1
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
alias pacman='pacman --color=auto'
|
|
|
|
fi
|
2016-08-22 11:04:24 +01:00
|
|
|
|
|
|
|
# clean for cmake files
|
2017-01-04 12:53:54 +00:00
|
|
|
alias cclean='rm -rf `find . -name "CMakeCache.txt"` `find . -name "cmake_install.cmake"` `find . -name "CMakeFiles"` `find . -name "Makefile"`'
|
2016-08-22 11:04:24 +01: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 ../../.."
|
2018-05-02 08:32:22 +01:00
|
|
|
|
|
|
|
# Alias for ls
|
2018-03-29 07:29:00 +01:00
|
|
|
command -v exa > /dev/null 2>&1
|
|
|
|
|
|
|
|
if [ $? -eq 0 ]; then
|
2018-03-29 07:31:03 +01:00
|
|
|
LS_COLORS=""
|
2018-03-29 07:29:00 +01:00
|
|
|
alias ls="exa -h --group-directories-first"
|
2018-03-29 08:30:40 +01:00
|
|
|
alias lt="ls -lT"
|
2018-03-29 07:29:00 +01:00
|
|
|
else
|
|
|
|
alias ls="ls -h --color --group-directories-first"
|
|
|
|
fi
|
2017-12-21 09:35:22 +00:00
|
|
|
alias l="ls"
|
2016-08-31 09:02:52 +01:00
|
|
|
alias sl="ls"
|
2016-08-22 11:04:24 +01:00
|
|
|
alias lsd="ls"
|
2016-09-08 08:16:44 +01:00
|
|
|
|
|
|
|
# Jump
|
|
|
|
alias j="jump"
|
2017-03-13 09:13:13 +00:00
|
|
|
|
2018-10-11 10:16:45 +01:00
|
|
|
# Disable bat paging
|
|
|
|
alias bat="bat --paging=never"
|
|
|
|
|
2017-03-13 09:13:13 +00:00
|
|
|
# Initialize thefuck
|
2017-03-23 16:07:35 +00:00
|
|
|
command -v thefuck > /dev/null 2>&1
|
|
|
|
|
|
|
|
# fuck aliases
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
eval $(thefuck --alias)
|
|
|
|
fi
|
2018-09-25 19:34:30 +01:00
|
|
|
|