-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.zshrc.local
81 lines (72 loc) · 2.16 KB
/
.zshrc.local
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
71
72
73
74
75
76
77
78
79
80
81
## PATH
#export PATH="\
#/opt/homebrew/bin:\
#/opt/homebrew/sbin:\
#/opt/homebrew/opt/ruby/bin:\
#/opt/homebrew/lib/ruby/gems/3.2.0/bin:\
#/opt/homebrew/opt/gnu-tar/libexec/gnubin:\
#/opt/homebrew/opt/curl/bin:\
#/opt/homebrew/opt/mysql-client/bin:\
#${HOME}/.cargo/bin:\
#${PATH}"
#export LDFLAGS="-L/opt/homebrew/opt/ruby/lib -L/opt/homebrew/opt/curl/lib"
#export CPPFLAGS="-I/opt/homebrew/opt/ruby/include -I/opt/homebrew/opt/curl/include"
#export PKG_CONFIG_PATH="/opt/homebrew/opt/ruby/lib/pkgconfig"
#export ANDROID_HOME="/opt/homebrew/share/android-commandlinetools"
## GNU Coreutils
# alias rm='rm -I'
## neovim
#alias v=nvim
#alias vi=nvim
#alias vim=nvim
#export EDITOR=nvim
## Fix home/end/delete
#bindkey "^[[H" beginning-of-line
#bindkey "^[[F" end-of-line
#bindkey "^[[3~" delete-char
## AWSCLIv2
#if [[ -f ~/.aws/current_profile ]]; then
# read -r AWS_PROFILE < ~/.aws/current_profile
# export AWS_PROFILE
#fi
#awsctx() {
# # shellcheck disable=SC2016
# AWS_PROFILE=$(FZF_DEFAULT_COMMAND='aws configure list-profiles | perl -pe "s/^(${AWS_PROFILE})$/\x1b[33m\1\x1b[0m/g"' fzf --ansi) &&\
# mkdir -p ~/.aws &&\
# cat <<< "${AWS_PROFILE}" > ~/.aws/current_profile &&\
# export AWS_PROFILE
#}
#awsregion() {
# # shellcheck disable=SC2016
# FZF_DEFAULT_COMMAND='aws ec2 describe-regions --all-regions --query "Regions[].{Name:RegionName}" --output text | perl -pe "s/^(${REGION})$/\x1b[33m\1\x1b[0m/g"' \
# REGION=$(aws configure get region) \
# fzf --ansi | xargs aws configure set region
#}
#
# macOS
#
## secretive
#export SSH_AUTH_SOCK="${HOME}/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh"
## noti
#noti() {
# if (( $? == 0 )); then
# osascript -e 'display notification "The command worked" with title "Success" sound name "Glass"'
# else
# osascript -e 'display notification "The command failed" with title "Failed" sound name "Sosumi"'
# fi
#}
#
# WSL
#
## ssh-agent
#if ! pgrep -u "${USER}" ssh-agent > /dev/null; then
# ssh-agent -t 1h > "${XDG_RUNTIME_DIR}/ssh-agent.env"
#fi
#if [[ ! -f "${SSH_AUTH_SOCK}" ]]; then
# . "${XDG_RUNTIME_DIR}/ssh-agent.env" > /dev/null
#fi
#
# zoxide
#
#unalias zi
#eval "$(zoxide init zsh)"