This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Basic settings | |
set nocompatible " Make Vim behave like a modern text editor | |
set encoding=UTF-8 " Use UTF-8 encoding | |
set backspace=indent,eol,start " Make backspace work like most people expect | |
set ruler " Show the cursor position all the time | |
set number " Show line numbers | |
set tabstop=4 " Set the width of a tab to 4 spaces | |
set shiftwidth=4 " Set the width of auto-indentation to 4 spaces | |
set expandtab " Use spaces instead of tabs | |
set hlsearch " Highlight search results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ll='ls -alF' (to show hidden files and files with their type) | |
alias ..='cd ..' (to go up one directory) | |
alias ...='cd ../..' (to go up two directories) | |
alias ~='cd ~' (to go to the home directory) | |
alias grep='grep --color=auto' (colorize the output of grep) | |
alias rm='rm -i' (to prompt before deleting files) | |
alias cp='cp -i' (to prompt before overwriting files) | |
alias mv='mv -i' (to prompt before overwriting files) | |
alias df='df -h' (to show disk usage in human-readable format) | |
alias du='du -h' (to show directory usage in human-readable format) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to update bash_aliases | |
# 1) vim ~/.bash_aliases | |
# 2) make changes | |
# 3) exit | |
# 4) source ~/.bash_aliases | |
# for more details refer to https://www.cyberciti.biz/faq/create-permanent-bash-alias-linux-unix/ | |
# make ls have colour | |
alias ls='ls --color=auto' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Show line numbers | |
set number | |
" Set auto indent | |
set autoindent | |
" Set smart indent | |
set smartindent | |
" make sure the indentations are 4 spaces only |