Skip to content

Instantly share code, notes, and snippets.

@edcote edcote/dotfiles.md
Last active Feb 1, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.