|
@@ -678,7 +678,7 @@ dtscr(){ |
|
|
# echo $_file |
|
|
# echo $_file |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
mcrypt-stream(){ |
|
|
|
|
|
|
|
|
mcrypt_stream(){ |
|
|
test $# -eq 2 || return 1 |
|
|
test $# -eq 2 || return 1 |
|
|
case $1 in |
|
|
case $1 in |
|
|
en) |
|
|
en) |
|
@@ -688,7 +688,7 @@ mcrypt-stream(){ |
|
|
esac |
|
|
esac |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
gpg-stream(){ |
|
|
|
|
|
|
|
|
gpg_stream(){ |
|
|
test $# -eq 2 || return 1 |
|
|
test $# -eq 2 || return 1 |
|
|
case $1 in |
|
|
case $1 in |
|
|
en) |
|
|
en) |
|
@@ -721,7 +721,7 @@ dgpg(){ |
|
|
elif test -f "$d" |
|
|
elif test -f "$d" |
|
|
then |
|
|
then |
|
|
echo "`printf 'failed (%s is already exists)' $d`" |
|
|
echo "`printf 'failed (%s is already exists)' $d`" |
|
|
elif <"$f" gpg-stream $1 $pw >"$d" 2>/dev/null |
|
|
|
|
|
|
|
|
elif <"$f" gpg_stream $1 $pw >"$d" 2>/dev/null |
|
|
then |
|
|
then |
|
|
echo "done" |
|
|
echo "done" |
|
|
else |
|
|
else |
|
@@ -731,8 +731,8 @@ dgpg(){ |
|
|
done |
|
|
done |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
alias enst="gpg-stream en" |
|
|
|
|
|
alias dest="gpg-stream de" |
|
|
|
|
|
|
|
|
alias enst="gpg_stream en" |
|
|
|
|
|
alias dest="gpg_stream de" |
|
|
|
|
|
|
|
|
showinfo(){ |
|
|
showinfo(){ |
|
|
echo "Japanese letters are 表示可能" |
|
|
echo "Japanese letters are 表示可能" |
|
@@ -972,7 +972,7 @@ __my_battery_status(){ |
|
|
} |
|
|
} |
|
|
alias bat='__my_battery_status %s\\n' |
|
|
alias bat='__my_battery_status %s\\n' |
|
|
|
|
|
|
|
|
ip-address(){ |
|
|
|
|
|
|
|
|
ipaddress(){ |
|
|
type ip >/dev/null 2>&1 || return 1 |
|
|
type ip >/dev/null 2>&1 || return 1 |
|
|
local ip=$(LANG=C ip addr show scope global | \ |
|
|
local ip=$(LANG=C ip addr show scope global | \ |
|
|
\grep --color=never --only-matching 'inet [^ ]*' | cut -d " " -f 2) |
|
|
\grep --color=never --only-matching 'inet [^ ]*' | cut -d " " -f 2) |
|
@@ -1020,7 +1020,7 @@ __my_ps1_git(){ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
__my_ps1_ipaddr(){ |
|
|
__my_ps1_ipaddr(){ |
|
|
! iswindows && ip-address [Addr:%s] |
|
|
|
|
|
|
|
|
! iswindows && ipaddress [Addr:%s] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
__my_ps1_bttry(){ |
|
|
__my_ps1_bttry(){ |
|
|