Little things

This commit is contained in:
Geoffrey Frogeye 2017-01-16 20:17:09 +01:00
parent d11416ad19
commit 78f7d99b09
2 changed files with 15 additions and 3 deletions

13
bashrc
View file

@ -31,7 +31,11 @@ export VISUAL=vim
export BROWSER=/usr/bin/qutebrowser
export TZ=/usr/share/zoneinfo/Europe/Paris
export PATH="$PATH:$HOME/.gem/ruby/2.3.0/bin/"
export PATH="$PATH"
$(which ls) $HOME/.gem/ruby | while read rubyVer; do
export PATH="$PATH:$HOME/.gem/ruby/$rubyVer/bin/"
done
export PATH="$(echo "$PATH" | sed 's|:|\n|g' | sort | uniq | tr '\n' ':' | sed 's|:$||')"
export LANG=fr_FR.utf8
export HISTSIZE=10000
export HISTFILESIZE=${HISTSIZE}
@ -107,8 +111,11 @@ if [ "$TERM" = "linux" ]; then
fi
# Utils
alias fuck='eval $(thefuck $(fc -ln -1))'
alias FUCK='fuck'
if which thefuck &> /dev/null; then
alias fuck='TF_CMD=$(TF_ALIAS=fuck PYTHONIOENCODING=utf-8 TF_SHELL_ALIASES=$(alias) thefuck $(fc -ln -1)) && eval $TF_CMD && history -s $TF_CMD'
alias FUCK='fuck'
fi
# Command not found
[ -r /usr/share/doc/pkgfile/command-not-found.bash ] && . /usr/share/doc/pkgfile/command-not-found.bash

View file

@ -97,6 +97,11 @@ function install-arch {
# Disable predictable network names
sudo ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
# TLP
# sudo pacman -S tlp
# sudo systemctl enable tlp.service tlp-sleep.service
# sudo systemctl disable systemd-rfkill
# TODO
# make -j8 in MAKEPKG
# time