Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.bashrc #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 35 additions & 15 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export SCM_CHECK=true
# Load Bash It
source "$BASH_IT"/bash_it.sh

#### Aliases
#### alias

# Custom
alias rmdots="find . -name \"*.swp\" -exec rm -rf {} \\;"
Expand All @@ -73,11 +73,16 @@ alias ls='ls -FGlAhp'
alias mkdir='mkdir -p'
alias mv='mv -iv'

# Colorize grep commands
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'

# Ruby
alias be='bundle exec'

# IP addresses
alias localip="ipconfig getifaddr en0"
alias localip='ipconfig getifaddr en0'

# Typos
alias c='clear'
Expand All @@ -86,28 +91,39 @@ alias clera='clear'
alias im='vim'
alias rpsec='rspec'

#### Export
#### export

# Default editor Vim
export EDITOR=vim

# Tell grep to highlight matches
export GREP_OPTIONS='—color=auto'

# Terminal history
export HISTCONTROL=ignoredups:ignorespace
export HISTSIZE=5000
export HISTFILESIZE=5000
export HISTTIMEFORMAT="%d/%m/%y %T "
export HISTTIMEFORMAT='%d/%m/%y %T '

## Highlighting of `man` pages

# Begin blinking
export LESS_TERMCAP_mb=$'\E[01;31m'

# Begin bold
export LESS_TERMCAP_md=$'\E[01;38;5;74m'

# End mode
export LESS_TERMCAP_me=$'\E[0m'

# Highlighting of `man` pages
export LESS_TERMCAP_mb=$'\E[01;31m' # Begin blinking
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # Begin bold
export LESS_TERMCAP_me=$'\E[0m' # End mode
export LESS_TERMCAP_se=$'\E[0m' # End standout-mode
export LESS_TERMCAP_so=$'\E[38;5;246m' # Begin standout-mode - info box
export LESS_TERMCAP_ue=$'\E[0m' # End underline
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # Begin underline
# End standout-mode
export LESS_TERMCAP_se=$'\E[0m'

# Begin standout-mode - info box
export LESS_TERMCAP_so=$'\E[38;5;246m'

# End underline
export LESS_TERMCAP_ue=$'\E[0m'

# Begin underline
export LESS_TERMCAP_us=$'\E[04;38;5;146m'

# Disable Homebrew analytics
export HOMEBREW_NO_ANALYTICS=1
Expand All @@ -130,3 +146,7 @@ fi
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi

if command -v rbenv 1>/dev/null 2>&1; then
eval "$(rbenv init -)"
fi
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
# dotfiles

## macOS

```
# Browser downloads
Atom
Chrome
Discord
Firefox
Postman
Visual Studio Code
iTerm

# App Store downloads
1Password 7
Divvy
Owly
Paste
Slack
```