-
-
Save k-holy/1495597 to your computer and use it in GitHub Desktop.
NYAOS用Luaスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 履歴保存 | |
option savehist C:\Applications\NYAOS\.history | |
# %USERPROFILE%\_nya に以下を追記して読み込む | |
source %USERPROFILE%\Dropbox\AppData\NYAOS\_nya_prompt.lua | |
# Gitコマンド | |
alias git C:\Applications\Git\bin\git.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- NYAOSのプロンプトをカスタマイズ %USERPROFILE%\Dropbox\AppData\NYAOS\_nya_prompt.lua | |
-- via http://anengineer.tumblr.com/post/13196592706/nyaos-bash-lua | |
function nyaos.prompt(p) | |
local b = '$e[32;40;1m' | |
local e = '$$ $e[37;1m' | |
local user = os.getenv('USERNAME') | |
local machine = os.getenv('USERDOMAIN') | |
local home = os.getenv('USERPROFILE') | |
local pwd = string.gsub(nyaos.eval('pwd'), home, '~') | |
return true, b .. '[' .. user .. '@' .. machine .. ' ' .. pwd .. ']\n' .. e | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment