Skip to content

Commit 2731507

Browse files
committed
chore(zsh): Some adjustes on zsh
1 parent a1a74f4 commit 2731507

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.vagrant/
22
tmux/plugins/
33
zsh/plugins/
4+
zsh/.config/zsh/plugins/
45
nvim/lazy-lock.json
56
tmux/.config/tmux/plugins/tpm/
67
.bootstrap

zsh/.config/zsh/envs/asdf.env.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export ASDF_GOLANG_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME:-$HOME/.config}/asdf
1212
[ -f $ASDF_DATA_DIR/plugins/golang/set-env.zsh ] && source $ASDF_DATA_DIR/plugins/golang/set-env.zsh
1313
[ -f $ASDF_DATA_DIR/plugins/java/set-java-home.zsh ] && source $ASDF_DATA_DIR/plugins/java/set-java-home.zsh
1414

15-
export $PATH=$ASDF_DATA_DIR/shims:$PATH
15+
export PATH=$ASDF_DATA_DIR/shims:$PATH
1616

1717
# Configs to ASDF-VM:
1818
if [ -d $ASDF_HOME/completions/ ]; then

zsh/.config/zsh/plugins/zplug

Lines changed: 0 additions & 1 deletion
This file was deleted.

zsh/.config/zsh/zshrc

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ alias ipy="python -c 'import IPython; IPython.terminal.ipapp.launch_new_instance
5757
# Look in ~/.oh-my-zsh/themes/
5858
# Optionally, if you set this to "random", it'll load a random theme each
5959
# time that oh-my-zsh is loaded.
60-
ZSH_THEME="catppuccin" # [ robbyrussell | agnoster | sorin | catppuccin ]
60+
export ZSH_THEME="catppuccin" # [ robbyrussell | agnoster | sorin | catppuccin ]
61+
export CATPPUCCIN_FLAVOR="macchiato"
62+
export CATPPUCCIN_SHOW_TIME=true
63+
export CATPPUCCIN_SHOW_HOSTNAME="never"
64+
export CATPPUCCIN_SHOW_USER="always"
6165

6266
# Uncomment the following line to use case-sensitive completion.
6367
# CASE_SENSITIVE="true"
@@ -76,7 +80,7 @@ ZSH_THEME="catppuccin" # [ robbyrussell | agnoster | sorin | catppuccin ]
7680
# DISABLE_LS_COLORS="true"
7781

7882
# Uncomment the following line to disable auto-setting terminal title.
79-
DISABLE_AUTO_TITLE="true"
83+
export DISABLE_AUTO_TITLE="true"
8084

8185
# Uncomment the following line to enable command auto-correction.
8286
# ENABLE_CORRECTION="true"
@@ -92,8 +96,12 @@ DISABLE_AUTO_TITLE="true"
9296
# Uncomment the following line if you want to change the command execution time
9397
# stamp shown in the history command output.
9498
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
95-
HIST_STAMPS="yyyy-mm-dd"
96-
HISTFILE=~/.zsh_history
99+
export HIST_STAMPS="yyyy-mm-dd"
100+
export HISTFILE=~/.local/share/zsh/zsh_history
101+
# HISTSIZE=100000
102+
# SAVEHIST=100000
103+
[ ! -d $HOME/.local/share/zsh/ ] && mkdir -p $HOME/.local/share/zsh/
104+
[ ! -f $HISTFILE ] && touch $HISTFILE
97105

98106
# Would you like to use another custom folder than $ZSH/custom?
99107
# ZSH_CUSTOM=/path/to/new-custom-folder
@@ -126,8 +134,8 @@ start_time=`date +%s`
126134
export ZPLUG_HOME=$XDG_CONFIG_HOME/zsh/plugins/zplug
127135
if [ -f $ZPLUG_HOME/init.zsh ]; then
128136
source $ZPLUG_HOME/init.zsh
129-
130-
zplug "robbyrussell/oh-my-zsh", use:"lib/*.zsh"
137+
# zplug check --verbose
138+
zplug "robbyrussell/oh-my-zsh", from:oh-my-zsh, use:"lib/*.zsh"
131139
# 1. Carrega a biblioteca base do Oh My Zsh (essencial para plugins e temas)
132140
zplug "lib/history", from:oh-my-zsh
133141
zplug "lib/theme-and-appearance", from:oh-my-zsh
@@ -170,18 +178,11 @@ if [ -f $ZPLUG_HOME/init.zsh ]; then
170178
zplug "lib/clipboard", from:oh-my-zsh, if:"[[ $OSTYPE == *darwin* ]]"
171179
zplug "plugins/osx", from:oh-my-zsh, if:"[[ $OSTYPE == *darwin* ]]"
172180

173-
174-
175181
# Theme
176-
# zplug "romkatv/powerlevel10k", as:theme
182+
zplug "romkatv/powerlevel10k", as:theme
177183
zplug "themes/robbyrussell", from:oh-my-zsh, as:theme
178184
zplug "dracula/zsh", as:theme
179185
zplug "JannoTjarks/catppuccin-zsh", use:catppuccin.zsh-theme, as:theme
180-
export CATPPUCCIN_FLAVOR="macchiato"
181-
export CATPPUCCIN_SHOW_TIME=false
182-
export CATPPUCCIN_SHOW_HOSTNAME="never"
183-
export CATPPUCCIN_SHOW_USER="always"
184-
185186

186187

187188
autoload -U +X bashcompinit && bashcompinit
@@ -191,8 +192,8 @@ if [ -f $ZPLUG_HOME/init.zsh ]; then
191192
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
192193
# Example format: plugins=(rails git textmate ruby lighthouse)
193194
# Add wisely, as too many plugins slow down shell startup.
194-
# plugins=(git ruby rails pip zsh-syntax-highlighting)
195-
plugins=(git asdf compleat zsh-syntax-highlighting terraform)
195+
# plugins=(git ruby rails pip zsh-syntax-highlighting terraform)
196+
plugins=(git asdf compleat zsh-syntax-highlighting)
196197

197198
zplug load
198199
# Em caso de erro de plugins não encontrados pode chamar um zplug install
@@ -247,5 +248,4 @@ fi
247248
# 2. Install install gcloud installed
248249
# asdf install gcloud latest
249250
# 3. Set global version
250-
# asdf global gcloud latest
251-
251+
# asdf global gcloud latest

0 commit comments

Comments
 (0)