-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
70 lines (52 loc) · 1.78 KB
/
.bash_profile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
export PATH="~/.npm-global/bin:$PATH"
export PATH="./node_modules/.bin/:$PATH"
export PATH="/usr/local/mysql/bin:$PATH"
export PATH="/Users/amirhosseinmeyssamirad/.ghcup/bin:$PATH"
export PATH="~/driver/:$PATH"
export DENO_INSTALL="/Users/amirhosseinmeyssamirad/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
alias vim="nvim"
export VISUAL=nvim
export EDITOR="$VISUAL"
## npm
export PATH="$PATH:~/npm"
export PATH="/Users/amirhosseinmeyssamirad/.gem/ruby/2.3.0/bin:$PATH"
PS1='[\u@\h \W]\$ '
alias ls="exa"
alias lt='ls --tree --level=2 -G'
alias la='ls -aF'
alias l='ls -GF'
alias ll='ls -alF'
alias cat='bat'
export BAT_THEME='OneHalfDark'
alias grep='grep --color=auto'
alias rm='rm -i'
alias mv='mv -i'
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/amirhosseinmeyssamirad/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/amirhosseinmeyssamirad/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/amirhosseinmeyssamirad/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/amirhosseinmeyssamirad/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
export PATH="/usr/local/opt/ruby/bin:$PATH"
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
[ -f "${GHCUP_INSTALL_BASE_PREFIX:=$HOME}/.ghcup/env" ] && source "${GHCUP_INSTALL_BASE_PREFIX:=$HOME}/.ghcup/env"
# FZF
bind '"\C-f":"cd_with_fzf\n"'
bind '"\C-t":"open_with_fzf\n"'
bind '"\C-v":"vim\n"'
export FZF_DEFAULT_COMMAND='fd'
cd_with_fzf() {
cd $HOME && cd "$(fd -t d --exclude "anaconda3" | fzf --preview="exa --tree --level=1 -G {}")" && echo $PWD && exa -alF
}
open_with_fzf() {
fd -t f --exclude "anaconda3" | fzf -m | tr '\n' '\0' | xargs -0 open
}