-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.source
executable file
·57 lines (44 loc) · 1.37 KB
/
.source
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
#!/bin/bash
# Dotfiles
# Easy to tap command
# Author: adevjoe
# Usage: source $HOME/.dotfiles/.source
DOTFILES_PATH=${HOME}/.dotfiles
export PATH=$PATH:${DOTFILES_PATH}:${DOTFILES_PATH}/func
# ALIAS
alias vi=vim
alias ll="ls -alFh"
alias dc="docker compose"
alias proxy="export http_proxy='http://127.0.0.1:7890' export https_proxy='http://127.0.0.1:7890'"
alias disproxy='unset http_proxy https_proxy'
alias pg="ps aux | head -1; ps aux | grep -v grep | grep"
alias myip="curl -s http://whatismyip.akamai.com/"
alias k="kubectl"
alias syu=syncUpstream
# ENV
# Golang
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOPATH/bin
# gvm
if [ -f ~/.gvm/scripts/gvm ]; then source ~/.gvm/scripts/gvm; fi
# K8s
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
# Flutter
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export PATH="$PATH:$HOME/lib/flutter/bin"
# Editor
export VISUAL="vim"
# Autojump
[[ -s ~/.autojump/etc/profile.d/autojump.sh ]] && . ~/.autojump/etc/profile.d/autojump.sh
# Zsh Theme
THEME=galaxy
if [ -f $DOTFILES_PATH/zsh-theme/$THEME.zsh-theme ]; then source $DOTFILES_PATH/zsh-theme/$THEME.zsh-theme; fi
# Git
export LESSCHARSET=utf-8
# GPG
export GPG_TTY=$(tty)
# OtherEnv
if [ -f $DOTFILES_PATH/.otherEnv ]; then source $DOTFILES_PATH/.otherEnv; fi