test
This commit is contained in:
@@ -29,11 +29,26 @@ autoload -Uz _zinit
|
|||||||
|
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
|
|
||||||
|
create-repo() {
|
||||||
|
printf "Repo name: "
|
||||||
|
read -r name || return
|
||||||
|
|
||||||
|
[ -z "$name" ] && { echo "No name given"; return; }
|
||||||
|
|
||||||
|
remote_path="hub/$name.git"
|
||||||
|
|
||||||
|
ssh git "
|
||||||
|
mkdir -p '/home/git/$remote_path' &&
|
||||||
|
git init --bare '/home/git/$remote_path' &&
|
||||||
|
cp '/home/git/hub/dotfiles.git/hooks/post-receive' '/home/git/$remote_path/hooks/'
|
||||||
|
" && echo "Created git:$remote_path"
|
||||||
|
ssh git set-desc "$name.git" "$desc"
|
||||||
|
}
|
||||||
|
|
||||||
alias ls="ls -a --color"
|
alias ls="ls -a --color"
|
||||||
alias grep="rg"
|
alias grep="rg"
|
||||||
alias comp="make && doas make install && make clean"
|
|
||||||
alias update_world='doas emerge --ask --update --newuse --deep @world'
|
|
||||||
if [[ $(uname) != "Darwin" ]]; then
|
if [[ $(uname) != "Darwin" ]]; then
|
||||||
|
alias update_world='doas emerge --ask --update --newuse --deep @world'
|
||||||
alias env="sh /home/andrew/personal/dotfiles/env_linux.sh"
|
alias env="sh /home/andrew/personal/dotfiles/env_linux.sh"
|
||||||
myfetch.sh
|
myfetch.sh
|
||||||
else
|
else
|
||||||
|
|||||||
+3
-3
@@ -47,7 +47,7 @@ echo "Copying .zshrc to $HOME"
|
|||||||
|
|
||||||
target="$HOME/.zshrc"
|
target="$HOME/.zshrc"
|
||||||
rm -f "$target"
|
rm -f "$target"
|
||||||
cp "$HOME/personal/env/.zshrc" "$target"
|
cp "$HOME/personal/dotfiles/.zshrc" "$target"
|
||||||
echo "Copied: .zshrc → $target"
|
echo "Copied: .zshrc → $target"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
@@ -56,7 +56,7 @@ echo "Copying tmux config"
|
|||||||
target="$HOME/.config/tmux/tmux.conf"
|
target="$HOME/.config/tmux/tmux.conf"
|
||||||
mkdir -p "$(dirname "$target")"
|
mkdir -p "$(dirname "$target")"
|
||||||
rm -f "$target"
|
rm -f "$target"
|
||||||
cp "$HOME/personal/env/.config/tmux/tmux.conf" "$target"
|
cp "$HOME/personal/dotfiles/.config/tmux/tmux.conf" "$target"
|
||||||
echo "Copied: tmux.conf → $target"
|
echo "Copied: tmux.conf → $target"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
@@ -65,6 +65,6 @@ echo "Copying starship config"
|
|||||||
target="$HOME/.config/starship.toml"
|
target="$HOME/.config/starship.toml"
|
||||||
mkdir -p "$(dirname "$target")"
|
mkdir -p "$(dirname "$target")"
|
||||||
rm -f "$target"
|
rm -f "$target"
|
||||||
cp "$HOME/personal/env/.config/starship.toml" "$target"
|
cp "$HOME/personal/dotfiles/.config/starship.toml" "$target"
|
||||||
echo "Copied: starship.toml → $target"
|
echo "Copied: starship.toml → $target"
|
||||||
rm -rf ~/.config/ghostty/linux
|
rm -rf ~/.config/ghostty/linux
|
||||||
|
|||||||
Reference in New Issue
Block a user