Skip to content

Instantly share code, notes, and snippets.

@edcote
Last active February 1, 2018 01:36
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 edcote/4eddaafd10191ea17f09155f827d6333 to your computer and use it in GitHub Desktop.
Save edcote/4eddaafd10191ea17f09155f827d6333 to your computer and use it in GitHub Desktop.
Dotfiles

Dot Files

Bash

  • For consistent results, remove package bash-completion using yum remove

  • Add directive shopt -s direxpand to file .bashrc for environment variables to expand to full path

  • Add following to your ~/.inputrc file:

      "\e[A": history-search-backward  
      "\e[B": history-search-forward  
      "\e[C": forward-char
      "\e[D": backward-char
      "\e[1;5C": forward-word
      "\e[1;5D": backward-word
    
  • Aliases for productivity

    grep and find

    alias g='egrep -i --color' alias grep='egrep --color'

    Default to human readable figures

    alias df='df -h' alias du='du -h'

    Pager configuration

    alias l='less -r' alias m='less -r' alias more='less -r' export PAGER='less -r'

    Editor

    alias vi='vim' alias gi='gvim' export EDITOR=vim

    Directory listing and navigation

    alias ls='ls -hF --color=tty' alias dir='ls --color=auto --format=vertical' alias vdir='ls --color=auto --format=long' alias ll='ls -l' alias la='ls -A' alias lr='ls -R' alias ..='cd ..'

    Other

    alias h='history' alias cls='clear'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment