-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kamontat Chantrachirathumrong
committed
Sep 3, 2018
1 parent
2a01765
commit 8c848a5
Showing
11 changed files
with
140 additions
and
109 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# shellcheck disable=SC1090,SC2148 | ||
|
||
unsetopt correct_all | ||
unsetopt correct |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,6 @@ export EDITOR='code-insiders' | |
|
||
export KEYTIMEOUT=1 | ||
|
||
export GOPATH="$HOME/Desktop/Projects/go" | ||
|
||
set -o vi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# shellcheck disable=SC1090,SC2148 | ||
|
||
wd_name="${HOME}/.zgen/mfaerevaag/wd-master" | ||
if is_command_exist "git" && ! is_folder_exist "$wd_name"; then | ||
mkdir "$wd_name" &>/dev/null | ||
git clone "https://github.com/mfaerevaag/wd.git" "$wd_name" &>/dev/null | ||
|
||
cp "${wd_name}/wd.1" "/usr/share/man/man1/wd.1" | ||
fi | ||
|
||
# contrib="${HOME}/.zgen/sorin-ionescu/prezto-master/contrib" | ||
# if ! is_folder_exist "$contrib"; then | ||
# git clone https://github.com/belak/prezto-contrib "$contrib" | ||
# cd contrib || exit 1 | ||
# git submodule init | ||
# git submodule update | ||
# fi | ||
|
||
spaceship_url="https://github.com/denysdovhan/spaceship-prompt.git" | ||
spaceship_location="${HOME}/.zgen/sorin-ionescu/prezto-master/modules/prompt/external/spaceship" | ||
|
||
if ! is_folder_exist "$spaceship_location"; then | ||
git clone "$spaceship_url" "$spaceship_location" &>/dev/null | ||
ln -s "${spaceship_location}/spaceship.zsh-theme" ~/.zprezto/modules/prompt/functions/prompt_spaceship_setup | ||
fi | ||
|
||
if is_file_exist "${spaceship_location}/spaceship.zsh-theme"; then | ||
prompt spaceship | ||
fi |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# shellcheck disable=SC1090,SC2148 | ||
|
||
# init promt theme | ||
|
||
SPACESHIP_PROMPT_ORDER=( | ||
time | ||
user | ||
host | ||
hg | ||
package | ||
node | ||
ruby | ||
elixir | ||
xcode | ||
swift | ||
golang | ||
php | ||
rust | ||
julia | ||
docker | ||
aws | ||
venv | ||
conda | ||
pyenv | ||
dotnet | ||
ember | ||
line_sep | ||
dir | ||
git | ||
exec_time | ||
line_sep | ||
battery | ||
exit_code | ||
char | ||
) | ||
|
||
SPACESHIP_RPROMPT_ORDER=( | ||
jobs | ||
) | ||
|
||
SPACESHIP_PROMPT_FIRST_PREFIX_SHOW=true | ||
|
||
SPACESHIP_TIME_SHOW=true | ||
SPACESHIP_TIME_FORMAT="%D{%d-%m-%Y %H.%M.%S}" | ||
SPACESHIP_BATTERY_SHOW=always | ||
|
||
SPACESHIP_EXIT_CODE_SHOW=true | ||
SPACESHIP_EXEC_TIME_SHOW=true | ||
SPACESHIP_EXEC_TIME_ELAPSED=1 |