-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
40 lines (31 loc) · 940 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
38
39
#!/usr/bin/env bash
# NOTES
#
# Shell - changing default shell
# @see: https://www.shell-tips.com/mac/upgrade-bash/#gsc.tab=0
#
# Shell - startup order
# @see: http://hayne.net/MacDev/Notes/unixFAQ.html#shellStartup
#
# Shell - upgrading bash MacOS
# @see: https://clubmate.fi/upgrade-to-bash-4-in-mac-os-x
#
# Bash history - remove duplicates
# awk '!x[$0]++' ~/.bash_history # keep the first value repeated.
# tac ~/.bash_history | awk '!x[$0]++' | tac # keep the last.
export HISTCONTROL=ignoreboth:erasedups
# FZF
export FZF_DEFAULT_OPTS='--height=40% --layout=reverse'
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# Personal
# source ~/.scripts/abrev.sh
# source ~/.scripts/alias.sh
function cc() {
cd ~/dev && cd $(ls -1 | fzf)
}
function branch() {
git checkout $(git branch --sort=-committerdate | fzf)
}
eval "$(/opt/homebrew/bin/brew shellenv)"
eval "$(starship init bash)"
eval "$(zoxide init bash)"