From 13a87ace1bbacc94864da57e77f4471cf5ddccda Mon Sep 17 00:00:00 2001 From: tom Date: Fri, 10 Apr 2020 00:31:25 +0100 Subject: [PATCH] tty --- .oh-my-zsh/custom/example.zsh | 10 ++++++++++ .../custom/plugins/example/example.plugin.zsh | 2 ++ .oh-my-zsh/custom/themes/example.zsh-theme | 4 ++++ .oh-my-zsh/custom/themes/spaceship.zsh-theme | 1 + .zshrc | 20 +++++++++++++++++++ 5 files changed, 37 insertions(+) create mode 100644 .oh-my-zsh/custom/example.zsh create mode 100644 .oh-my-zsh/custom/plugins/example/example.plugin.zsh create mode 100644 .oh-my-zsh/custom/themes/example.zsh-theme create mode 120000 .oh-my-zsh/custom/themes/spaceship.zsh-theme diff --git a/.oh-my-zsh/custom/example.zsh b/.oh-my-zsh/custom/example.zsh new file mode 100644 index 00000000..c505a967 --- /dev/null +++ b/.oh-my-zsh/custom/example.zsh @@ -0,0 +1,10 @@ +# You can put files here to add functionality separated per file, which +# will be ignored by git. +# Files on the custom/ directory will be automatically loaded by the init +# script, in alphabetical order. + +# For example: add yourself some shortcuts to projects you often work on. +# +# brainstormr=~/Projects/development/planetargon/brainstormr +# cd $brainstormr +# diff --git a/.oh-my-zsh/custom/plugins/example/example.plugin.zsh b/.oh-my-zsh/custom/plugins/example/example.plugin.zsh new file mode 100644 index 00000000..406f2744 --- /dev/null +++ b/.oh-my-zsh/custom/plugins/example/example.plugin.zsh @@ -0,0 +1,2 @@ +# Add your own custom plugins in the custom/plugins directory. Plugins placed +# here will override ones with the same name in the main plugins directory. diff --git a/.oh-my-zsh/custom/themes/example.zsh-theme b/.oh-my-zsh/custom/themes/example.zsh-theme new file mode 100644 index 00000000..ef8f1c63 --- /dev/null +++ b/.oh-my-zsh/custom/themes/example.zsh-theme @@ -0,0 +1,4 @@ +# Put your custom themes in this folder. +# Example: + +PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%~ %{$reset_color%}%% " diff --git a/.oh-my-zsh/custom/themes/spaceship.zsh-theme b/.oh-my-zsh/custom/themes/spaceship.zsh-theme new file mode 120000 index 00000000..c4763808 --- /dev/null +++ b/.oh-my-zsh/custom/themes/spaceship.zsh-theme @@ -0,0 +1 @@ +/home/tom/.oh-my-zsh/custom/themes/spaceship-prompt/spaceship.zsh-theme \ No newline at end of file diff --git a/.zshrc b/.zshrc index 7b886bf2..b9f48e6d 100644 --- a/.zshrc +++ b/.zshrc @@ -97,3 +97,23 @@ source $ZSH/oh-my-zsh.sh # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" + +if [ "$TERM" = "linux" ]; then + echo -en '\e]P0262c35' #dblack + echo -en '\e]P18b5335' #dred + echo -en '\e]P2575e36' #dgreen + echo -en '\e]P387663e' #dyellow + echo -en '\e]P42e485c' #dblue + echo -en '\e]P5865a63' #dmagenta + echo -en '\e]P6277468' #dcyan + echo -en '\e]P7726d56' #dwhite + echo -en '\e]P8444f60' #black + echo -en '\e]P9da8252' #red + echo -en '\e]PA9fab63' #green + echo -en '\e]PBd3a061' #yellow + echo -en '\e]PC48718f' #blue + echo -en '\e]PDb87b87' #magenta + echo -en '\e]PE3cb5a3' #cyan + echo -en '\e]PFb2aa87' #white + clear +fi