Skip to content

Commit

Permalink
add starship prompt, add alacritty.toml, add tldr
Browse files Browse the repository at this point in the history
  • Loading branch information
fynnfluegge committed Jun 8, 2024
1 parent e88b642 commit 9dc4e8e
Show file tree
Hide file tree
Showing 6 changed files with 140 additions and 8 deletions.
115 changes: 115 additions & 0 deletions .config/alacritty/alacritty.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
import = ["~/.config/alacritty/themes/themes/github_dark.toml"]

[window]
startup_mode = "Maximized"
opacity = 1
decorations = "buttonless"

[colors.primary]
background = "#1a1f2b"

[colors.cursor]
cursor = "#33ee33"

[font]
size = 14

[font.normal]
family = "Hack Nerd Font"

[[keyboard.bindings]]
key = "Right"
mods = "Alt"
chars = "\u001bF"

[[keyboard.bindings]]
key = "Left"
mods = "Alt"
chars = "\u001bB"

[[keyboard.bindings]]
key = "Left"
mods = "Command"
chars = "\u001bOH"
mode = "AppCursor"

[[keyboard.bindings]]
key = "Right"
mods = "Command"
chars = "\u001bOF"
mode = "AppCursor"

[[keyboard.bindings]]
key = "Back"
mods = "Command"
chars = "\u0015"

[[keyboard.bindings]]
key = "M"
mods = "Control|Command"
action = "ToggleFullscreen"

[[keyboard.bindings]]
key = "Plus"
mods = "Command"
action = "IncreaseFontSize"

[[keyboard.bindings]]
key = "Minus"
mods = "Command"
action = "DecreaseFontSize"

[[keyboard.bindings]]
key = "A"
mods = "Alt"
chars = "\u001ba"

[[keyboard.bindings]]
key = "B"
mods = "Alt"
chars = "\u001bb"

[[keyboard.bindings]]
key = "C"
mods = "Alt"
chars = "\u001bc"

[[keyboard.bindings]]
key = "D"
mods = "Alt"
chars = "\u001bd"

[[keyboard.bindings]]
key = "E"
mods = "Alt"
chars = "\u001be"

[[keyboard.bindings]]
key = "F"
mods = "Alt"
chars = "\u001bf"

[[keyboard.bindings]]
key = "G"
mods = "Alt"
chars = "\u001bg"

[[keyboard.bindings]]
key = "H"
mods = "Alt"
chars = "\u001bh"

[[keyboard.bindings]]
key = "I"
mods = "Alt"
chars = "\u001bi"

[[keyboard.bindings]]
key = "J"
mods = "Alt"
chars = "\u001bj"

[[keyboard.bindings]]
key = "K"
mods = "Alt"
chars = "\u001bk"
14 changes: 14 additions & 0 deletions .config/iterm2/com.googlecode.iterm2.plist
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@
</dict>
<key>HapticFeedbackForEsc</key>
<false/>
<key>HideMenuBarInFullscreen</key>
<false/>
<key>Hotkey</key>
<false/>
<key>HotkeyChar</key>
Expand Down Expand Up @@ -571,6 +573,8 @@
<key>Red Component</key>
<real>0.70213186740875244</real>
</dict>
<key>Cursor Shadow</key>
<true/>
<key>Cursor Text Color</key>
<dict>
<key>Alpha Component</key>
Expand All @@ -584,10 +588,14 @@
<key>Red Component</key>
<real>0.032308312132954597</real>
</dict>
<key>Cursor Type</key>
<integer>2</integer>
<key>Custom Command</key>
<string>No</string>
<key>Custom Directory</key>
<string>No</string>
<key>Custom Locale</key>
<string>en_US.UTF-8</string>
<key>Default Bookmark</key>
<string>No</string>
<key>Description</key>
Expand Down Expand Up @@ -1123,6 +1131,8 @@
</dict>
<key>Send Code When Idle</key>
<false/>
<key>Set Local Environment Vars</key>
<integer>2</integer>
<key>Shortcut</key>
<string></string>
<key>Show Mark Indicators</key>
Expand Down Expand Up @@ -1208,12 +1218,16 @@
<false/>
<key>SplitPaneDimmingAmount</key>
<real>0.39024002399850399</real>
<key>StatusBarPosition</key>
<integer>0</integer>
<key>SwitchPaneModifier</key>
<integer>6</integer>
<key>SwitchWindowModifier</key>
<integer>9</integer>
<key>TabStyleWithAutomaticOption</key>
<integer>6</integer>
<key>TabViewType</key>
<integer>1</integer>
<key>VisualIndicatorForEsc</key>
<false/>
<key>findMode_iTerm</key>
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
!.config/alacritty
.config/alacritty/*
!.config/alacritty/alacritty.yml
!.config/alacritty/alacritty.toml
!.config/alacritty/themes
.config/alacritty/themes/*
!.config/alacritty/themes/themes
Expand Down
11 changes: 3 additions & 8 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ export EDITOR=nvim;
P10K_PATH="$HOME/.p10k.zsh"
# Check if the p10k.zsh file exists
if [[ -f $P10K_PATH ]]; then
# If the file exists, source it
source $P10K_PATH
# Set the ZSH theme to powerlevel10k
ZSH_THEME="powerlevel10k/powerlevel10k"
else
# If the file does not exist, set a different theme
ZSH_THEME="awesomepanda"
# Enable starship shell
eval "$(starship init zsh)"
fi

typeset -A ZSH_HIGHLIGHT_STYLES
Expand Down Expand Up @@ -59,15 +57,12 @@ plugins=(
zsh-syntax-highlighting
zsh-autosuggestions
conda-zsh-completion
zsh-vi-mode
# zsh-vi-mode
)
# ----------------- #

source $ZSH/oh-my-zsh.sh

# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f $HOME/.p10k.zsh ]] || source $HOME/.p10k.zsh

# Enable fzf shell
[ -f $HOME/.fzf.zsh ] && source $HOME/.fzf.zsh
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUS
RUN git clone https://github.com/conda-incubator/conda-zsh-completion ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/conda-zsh-completion
RUN git clone https://github.com/jeffreytse/zsh-vi-mode $ZSH_CUSTOM/plugins/zsh-vi-mode

# Install starship prompt
RUN curl -fsSL https://starship.rs/install.sh | bash -s -- -y

# Add dotfiles
COPY .config $HOME/.config
COPY .scripts $HOME/.scripts
Expand Down Expand Up @@ -169,6 +172,9 @@ RUN source $HOME/.zprofile && nvm install $NODE_VERSION && nvm use $NODE_VERSION
# Ensure pip is installed and upgrade it
RUN source $HOME/.zprofile && pip3 install --upgrade pip --break-system-packages

# Install tldr
RUN source $HOME/.zprofile && pip3 install tldr

# Ensure pipx is installed
RUN pipx ensurepath

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
- [delta](https://github.com/dandavison/delta)
- [eza](https://github.com/eza-community/eza)
- [zoxide](https://github.com/ajeetdsouza/zoxide)
- [tldr](https://github.com/tldr-pages/tldr)
- [lazygit](https://github.com/jesseduffield/lazygit)
- [lazydocker](https://github.com/jesseduffield/lazydocker)

Expand Down

0 comments on commit 9dc4e8e

Please sign in to comment.