Skip to content

Instantly share code, notes, and snippets.

@souhaiebtar
Last active July 24, 2018 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save souhaiebtar/9ad3f5f9387b72ac1f005567bde6c91e to your computer and use it in GitHub Desktop.
Save souhaiebtar/9ad3f5f9387b72ac1f005567bde6c91e to your computer and use it in GitHub Desktop.
zshrc file
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Customize to your needs...
alias c="clear"
alias publicip="curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'"
PUBLICIP="$(publicip)"
echo -ne "\e]1;$PUBLICIP\a"
export EDITOR='vim'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment