Browse Source

Add select new aliases and exports based on upstream mathiasbynens/dotfiles.

wim
wimleers 1 year ago
parent
commit
17cf6f6bc1
2 changed files with 10 additions and 0 deletions
  1. 6
    0
      .aliases
  2. 4
    0
      .exports

+ 6
- 0
.aliases View File

@@ -29,6 +29,12 @@ alias lsd="ls -lF ${colorflag} | grep --color=never '^d'"
# Always use color output for `ls`
alias ls="command ls ${colorflag}"

# Always enable colored `grep` output
# Note: `GREP_OPTIONS="--color=auto"` is deprecated, hence the alias usage.
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'

# IP addresses
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
alias localip="ipconfig getifaddr en0"

+ 4
- 0
.exports View File

@@ -1,3 +1,7 @@
# Prefer US English and use UTF-8.
export LANG='en_US.UTF-8';
export LC_ALL='en_US.UTF-8';

# Make vim the default editor
export EDITOR="vim"
# Don’t clear the screen after quitting a manual page

Loading…
Cancel
Save