-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc_for_win_gitbash
More file actions
41 lines (32 loc) · 889 Bytes
/
Copy path.bashrc_for_win_gitbash
File metadata and controls
41 lines (32 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# .bashrc
# Run every time you start the shell
# .bash_profile -> .bashrc
# User specific aliases and functions
#alias
alias ls='ls --show-control-chars -F --color --ignore={NTUSER.*,ntuser.*}'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# alias
which vim > /dev/null 2>&1 && alias vi='vim'
which vim > /dev/null 2>&1 && alias view='vim -R'
alias less='less -X' # Prevent screen clear when less command ends
# history
HISTSIZE=10000
HISTFILESIZE=10000
HISTTIMEFORMAT='%F %T %z '
PROMPT_COMMAND="history -a" # Add to history every command execution
#HISTIGNORE="history*:pwd"
#PS1
# Use the default colored prompt in Git Bash
#[USER@HOSTNAME PWD HH:MM:SS]$
#PS1="[\u@\h \w \$(date +"%H:%M:%S")]\$ "
#PS1="[\u@\h \w \t]# "
#PS1="[\u@\h \w \t]\$ "
#Windows
alias e='explorer'
alias e.='explorer .'