-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
32 lines (24 loc) · 802 Bytes
/
.bashrc
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
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# alias
alias ls='ls --color=auto'
alias ll='ls -l'
alias sl='ls'
alias rm='rm -i'
alias clr='clear'
# PS1='[\u@\h \W]\$ '
# default editor
export EDITOR='vim'
# fzf
[ -f /usr/share/fzf/key-bindings.bash ] && source /usr/share/fzf/key-bindings.bash
[ -f /usr/share/fzf/completion.bash ] && source /usr/share/fzf/completion.bash
# shopt: This builtin allows you to change additional shell optional behavior
# -s: enalbe
# autocd: If set, a command name that is the name of a directory is executed
# as if it were the argument to the cd command. This option is only used by
# interactive shells.
shopt -s autocd
# history
HISTSIZE=5000
# less exit if the entire file can be displayed on the first screen
export LESS="-F"