forked from llipio/DevSettings
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.devBash
43 lines (32 loc) · 1022 Bytes
/
.devBash
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
41
### What to display in terminal
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
export EDITOR=vim
### Yarn
export PATH="$PATH:`yarn global bin`"
### FZF
# Use ag instead of the default find command for listing candidates.
# - The first argument to the function is the base path to start traversal
# - Note that ag only lists files not directories
# - See the source code (completion.{bash,zsh}) for the details.
_fzf_compgen_path() {
ag -g "" "$1"
}
# Setting ag as the default source for fzf
export FZF_DEFAULT_COMMAND='ag -g ""'
# To apply the command to CTRL-T as well
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_DEFAULT_OPTS='--height 40% --reverse --border'
# Options to fzf command
export FZF_COMPLETION_OPTS='+c -x'
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# Useful commands - lcd changes directory and ls
function changeDirectory {
cd $1;
ls -la .
}
alias cl=changeDirectory
# Quickly jumps to parent directores
alias .='cl ..'
alias ..='cl ../..'
alias ...='cl ../../..'