From dc4647915f243d4f21024bd9b7997df780325b68 Mon Sep 17 00:00:00 2001 From: js0ny Date: Thu, 19 Dec 2024 19:57:47 +0000 Subject: [PATCH] sync: from Linux --- bootstrap/set_symlink_unix.bash | 3 ++- bootstrap/tmp.zsh | 19 +++++++++++++++++++ common/NuGet.Config | 0 platforms/linux/zshrc | 15 +++++++++++++++ tools/starship/starship_zsh.toml | 3 ++- tools/zsh/zshenv | 2 +- 6 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 bootstrap/tmp.zsh mode change 100644 => 100755 common/NuGet.Config create mode 100644 platforms/linux/zshrc diff --git a/bootstrap/set_symlink_unix.bash b/bootstrap/set_symlink_unix.bash index 8554448..5959749 100644 --- a/bootstrap/set_symlink_unix.bash +++ b/bootstrap/set_symlink_unix.bash @@ -11,7 +11,8 @@ mkdir -p ~/.config/zellij ~/.config/yazi ~/.config/glow mkdir -p $HOME/Obsidian # $DOTFILES/common ln -sf $DOTFILES/common/condarc.yaml $XDG_CONFIG_HOME/conda/.condarc -ln -sf $DOTFILES/common/gitconfig $XDG_CONFIG_HOME/git/config +# ln -sf $DOTFILES/common/gitconfig $XDG_CONFIG_HOME/git/config +cp $DOTFILES/common/gitconfig.example $XDG_CONFIG_HOME/git/config ln -sf $DOTFILES/common/glow.yaml ~/.config/glow/config.yml ln -sf $DOTFILES/common/haskeline ~/.haskeline ln -sf $DOTFILES/common/ideavimrc $XDG_CONFIG_HOME/ideavim/ideavimrc diff --git a/bootstrap/tmp.zsh b/bootstrap/tmp.zsh new file mode 100644 index 0000000..71e32c8 --- /dev/null +++ b/bootstrap/tmp.zsh @@ -0,0 +1,19 @@ +export DOTFILES=~/.dotfiles +export ZDOTDIR=~/.config/zsh + +mkdir -p $ZDOTDIR +mkdir -p $DOTFILES + +git clone https://github.com/js0ny/dotfiles $DOTFILES + +sudo cp $DOTFILES/tools/zsh/global.zshenv /etc/zsh/zshenv + +export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" +export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}" +export XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}" +export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}" +export XDG_RUNTIME_DIR="/run/user/$(id -u)" + + +mkdir -p $XDG_CONFIG_HOME $XDG_DATA_HOME $XDG_STATE_HOME $XDG_CACHE_HOME + diff --git a/common/NuGet.Config b/common/NuGet.Config old mode 100644 new mode 100755 diff --git a/platforms/linux/zshrc b/platforms/linux/zshrc new file mode 100644 index 0000000..4f81dbe --- /dev/null +++ b/platforms/linux/zshrc @@ -0,0 +1,15 @@ +# Use powerline +USE_POWERLINE="true" +# Has weird character width +# Example: +#  is not a diamond +HAS_WIDECHARS="false" +alias open=dolphin +# Source manjaro-zsh-configuration +if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then + source /usr/share/zsh/manjaro-zsh-config +fi +# Use manjaro zsh prompt +# if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then +# source /usr/share/zsh/manjaro-zsh-prompt +# fi diff --git a/tools/starship/starship_zsh.toml b/tools/starship/starship_zsh.toml index 6308e99..2880b83 100644 --- a/tools/starship/starship_zsh.toml +++ b/tools/starship/starship_zsh.toml @@ -28,7 +28,8 @@ truncation_length = 2 truncate_to_repo = true read_only = " 󰌾" style ="bold cyan" -truncation_symbol = ".../" +truncation_symbol = ":" +fish_style_pwd_dir_length = 1 [directory.substitutions] "~/Documents" = "󰈙 " diff --git a/tools/zsh/zshenv b/tools/zsh/zshenv index 99d7d5f..7411ed5 100644 --- a/tools/zsh/zshenv +++ b/tools/zsh/zshenv @@ -7,7 +7,7 @@ # $ZDOTDIR/.zshenv (specified by ZDOTDIR) # ~/.zshenv (default location) # Linking: -# ln -sf $DOTFILES/tools/zsh/.zshenv $ZDOTDIR/.zshenv +# ln -sf $DOTFILES/tools/zsh/zshenv $ZDOTDIR/.zshenv # This file is sourced by all zsh sessions upon startup. # For me (this user), define XDG Base Directory Specification variables