-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathshell_settings.sh
More file actions
executable file
·54 lines (43 loc) · 1.42 KB
/
shell_settings.sh
File metadata and controls
executable file
·54 lines (43 loc) · 1.42 KB
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
#!/bin/bash
#private_key_1=$HOME/.ssh/id_ed25519
#private_key_2=$HOME/.ssh/id_rsa
#if [[ -f $private_key_1 ]]
#then
#/usr/bin/keychain --quiet --quick $private_key_1
#fi
#if [[ -f $private_key_2 ]]
#then
#/usr/bin/keychain --quiet --quick $private_key_2
#fi
#if [[ $HOST == "" ]]
#then
#source $HOME/.keychain/$HOSTNAME-sh
#elif [[ $HOSTNAME == "" ]]
#then
#source $HOME/.keychain/$HOST-sh
##else
## echo 'Error! Can not get hostname, both $HOST and $HOSTNAME are empty.' 1>&2
## sleep 0.2
## #exit 1
#fi
# We're using passwordless SSH keys, so no SSH agent setup is needed.
# Programs will directly use the key file when needed.
# If you need agent forwarding or other SSH agent features, uncomment the section below.
# Uncomment if you need SSH agent features:
# if command -v keychain >/dev/null 2>&1; then
# eval $(keychain --quiet --agents ssh ~/.ssh/id_ed25519)
# else
# if [ -z "$SSH_AUTH_SOCK" ]; then
# eval "$(ssh-agent -s)" > /dev/null
# ssh-add ~/.ssh/id_ed25519 2>/dev/null
# fi
# fi
# Uncomment if using SSH agent:
# ssh-add -l | grep -q "$(ssh-keygen -lf ~/.ssh/id_ed25519.pub | awk '{print $2}')" || ssh-add ~/.ssh/id_ed25519 2>/dev/null
export VISUAL=nvim
export EDITOR="$VISUAL"
export PYTHONBREAKPOINT=ipdb.set_trace
export SPOTIFY_DBUS_CLIENT=spotifyd
export PATH="$PATH":"$HOME"/.cargo/bin
export PATH="$PATH":"$HOME"/go/bin
export PATH="$HOME/git/scripts_path:$PATH"