Last active
July 24, 2018 12:13
-
-
Save souhaiebtar/9ad3f5f9387b72ac1f005567bde6c91e to your computer and use it in GitHub Desktop.
zshrc file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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