Last active
January 9, 2018 04:08
-
-
Save ggsalas/cfc22b64d4fef316af717b3e9c28a387 to your computer and use it in GitHub Desktop.
Bash profile on macos
This file contains hidden or 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
# GIT autocompleted | |
# Download from: https://gist.github.com/carlosvillu/e4ada4f991d495d07604 | |
# then do: $ source ~/.bash_profile | |
source ~/.git-completion.sh | |
# prompt | |
# https://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/ | |
# 38: front color, 48: background color | |
light="\[\033[38;5;8m\]" | |
normal="\[\033[38;5;7m\]" | |
export PS1="$light\n\$(__git_ps1 '%s • ')\w\[$(tput sgr0)\] $normal\n ☀️ " | |
## ALIAS ## | |
# Neovim | |
alias vi="nvim" | |
# file snd folders | |
alias ll="ls -ogpAhG" | |
alias .='clear' | |
alias ..='cd ..' | |
alias cp='cp -i' | |
alias mv='mv -i -u' | |
alias rm='rm -i' | |
alias df='df -h' | |
# Others | |
alias reload='source ~/.bash_profile' | |
alias untar='tar -xvf' | |
# Iterm | |
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash" | |
[ -f ~/.fzf.bash ] && source ~/.fzf.bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment