Entropy Reduction

Personal log of yet another digital native.


Project maintained by andre-abadi Hosted on GitHub Pages — Theme by mattgraham

Contents

Liquid Prompt CPU Temperature Tmux Zsh

Liquid Prompt

https://github.com/nojhan/liquidprompt https://www.liquidstate.net/liquid-prompt/ Use the following instructions: http://www.webupd8.org/2013/04/liquid-prompt-adaptive-prompt-for-bash.html

sudo pacman -S git git clone https://github.com/nojhan/liquidprompt.git ~/.liquidprompt mkdir .config cp ~/.liquidprompt/liquidpromptrc-dist ~/.config/liquidpromptrc vim .bashrc Add to end of file: . ~/.liquidprompt/liquidprompt Log out and back in!

CPU Temperature

Measure CPU temperature and create Bash alias:

https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=34994

/opt/vc/bin/vcgencmd measure_temp vim ~/.bashrc Add before liquidprompt lines: alias temp='/opt/vc/bin/vcgencmd measure_temp' temp

Tmux

https://wiki.archlinux.org/index.php/tmux#Installation sudo pacman -S tmux

https://wiki.archlinux.org/index.php/tmux#Start_tmux_on_every_shell_login vim ~/.bashrc Add before aliases: `# Start Tmux on every shell login # https://coderwall.com/p/tgm2la/auto-attach-or-start-tmux-at-login # If not running interactively, do not do anything

if [[ "$TERM" != "screen" ]] &&
      ; then
  # Attempt to discover a detached session and attach
  # it, else create a new session

  WHOAMI=$(whoami)
  if tmux has-session -t $WHOAMI 2>/dev/null; then
      tmux -2 attach-session -t $WHOAMI
  else
      tmux -2 new-session -s $WHOAMI
  fi
else`

Use the cheat sheet in case you lose a session: http://www.dayid.org/comp/tm.html

Zsh:

https://wiki.archlinux.org/index.php/zsh#Installation echo $SHELL sudo pacman -S zsh zsh-completions Append custom ~/.bashrc to ~/.zshrc

https://wiki.archlinux.org/index.php/Command-line_shell#Changing_your_default_shell chsh -l http://unix.stackexchange.com/questions/71236/zsh-is-in-usr-bin-but-also-in-bin-what-is-the-difference chsh -s /bin/zsh per chsh -l path to zsh Log out and back in.