-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bash_profile
More file actions
36 lines (28 loc) · 822 Bytes
/
Copy path.bash_profile
File metadata and controls
36 lines (28 loc) · 822 Bytes
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
### START-Keychain ###
# Let re-use ssh-agent and/or gpg-agent between logins
/usr/bin/keychain $HOME/.ssh/lukas
source $HOME/.keychain/$HOSTNAME-sh
### End-Keychain ###
# node 18 is default currently
[[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh # This loads NVM
nvm use 18
if [ -f $HOME/.bashrc ]; then
source $HOME/.bashrc
fi
# move secrets, local environment variables and exports into
# .bash_local file
if [ -f $HOME/.bash_local ]; then
source $HOME/.bash_local
fi
alias todo='vim $LOGBOOK_DIR/todo.md'
# Open my dev logbook file for the day
function log() {
DATE=$(date "+%Y-%m-%d")
FILE="$LOGBOOK_DIR/${DATE}.md"
# replaced by nvim snippet
# if [ ! -f "$FILE" ]; then
# echo "# $DATE" > "$FILE"
# fi
vim "$FILE"
}
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)