-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathprofilereconf.sh
More file actions
33 lines (26 loc) · 806 Bytes
/
profilereconf.sh
File metadata and controls
33 lines (26 loc) · 806 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
#!/usr/bin/env bash
# ==============================================================================
# 重新初始化运行环境
# ==============================================================================
# Created by Arondight <shell_way@foxmail.com>
# ==============================================================================
alias profile-reconf='profilereconf'
alias profile_reconf='profilereconf'
function profilereconf ()
{
local _profileroot="$(dirname $(dirname $(readlink -f $HOME/.zshrc)))"
local _install_sh="${_profileroot}/install.sh"
local _args='-a'
local _ret=0
pushd "$_profileroot"
if [[ -x "$_install_sh" ]]
then
command "$_install_sh" "$_args"
_ret="$?"
else
echo "\"${_install_sh}\" not found." >&2
_ret=1
fi
popd
return "$?"
}