-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
37 lines (29 loc) · 964 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
33
34
35
36
37
# This file is stored in github.com/rajkipa
# All generic configuration is stored in this file and it can be distributed to multiple machines
# Set default editor
export EDITOR=$(which vim)
export VISUAL="$EDITOR"
# Setting bash to vim mode
set -o vi
# vim binding in command mode
bind -m vi-command 'Control-l: clear-screen'
bind -m vi-command 'Control-a: begining-of-line'
bind -m vi-command 'Control-e: end-of-line'
# vim binding in command mode
bind -m vi-insert 'Control-l: clear-screen'
bind -m vi-insert 'Control-a: begining-of-line'
bind -m vi-insert 'Control-e: end-of-line'
# Alias section
alias ll='ls -l'
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias workfiles='git --git-dir=$HOME/.workfiles/ --work-tree=$HOME'
#starship
eval "$(starship init bash)"
STARSHIP_CONFIG=~/.starship.toml
function h() {
history |grep $1
}
# Sourcing the config of work profile
if [ -r ~/.bashrc.work ]; then
source ~/.bashrc.work
fi