Skip to content

Instantly share code, notes, and snippets.

@ggsalas
Created June 24, 2018 23:43
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 ggsalas/b04242c26865cba40bc00f5e8f971853 to your computer and use it in GitHub Desktop.
Save ggsalas/b04242c26865cba40bc00f5e8f971853 to your computer and use it in GitHub Desktop.
All my config on .bashrc and a symbolic link to .bash_profile to get work on Neovim-terminal
# 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"
alias vip="nvim -c 'term' -c 'file Console' -c 'term' -c 'file Server'"
# file snd folders
alias ll="ls -ogpAhG"
alias .='clear'
alias ..='cd ..'
# Others
alias reload='source ~/.bashrc'
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