From 857e5e7984ae50e595c55d2da4d0ca7e1328f113 Mon Sep 17 00:00:00 2001 From: elwrcl Date: Tue, 31 Mar 2026 00:18:58 +0300 Subject: [PATCH] add: dotfiles into repo --- home/dots/fastfetch/asuka.txt | 25 +++ home/dots/fastfetch/config.jsonc | 123 ++++++++++++ home/dots/fastfetch/fastfetch_kayan.sh | 182 ++++++++++++++++++ home/dots/fish/auto-Hypr.fish | 5 + .../fish/conf.d/fish_frozen_key_bindings.fish | 14 ++ home/dots/fish/conf.d/fish_frozen_theme.fish | 37 ++++ home/dots/fish/config.fish | 28 +++ home/dots/fish/fish_variables | 6 + home/dots/zsh/.zshrc | 96 +++++++++ 9 files changed, 516 insertions(+) create mode 100644 home/dots/fastfetch/asuka.txt create mode 100644 home/dots/fastfetch/config.jsonc create mode 100755 home/dots/fastfetch/fastfetch_kayan.sh create mode 100644 home/dots/fish/auto-Hypr.fish create mode 100644 home/dots/fish/conf.d/fish_frozen_key_bindings.fish create mode 100644 home/dots/fish/conf.d/fish_frozen_theme.fish create mode 100755 home/dots/fish/config.fish create mode 100755 home/dots/fish/fish_variables create mode 100644 home/dots/zsh/.zshrc diff --git a/home/dots/fastfetch/asuka.txt b/home/dots/fastfetch/asuka.txt new file mode 100644 index 0000000..f770b3c --- /dev/null +++ b/home/dots/fastfetch/asuka.txt @@ -0,0 +1,25 @@ +$3⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +$3⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀$1⠓$3⠀⠀⠀⣀⣠⣤⠤⣒⣴⣴⣶⣶⣶⣶⣦⡤$1⣀⣤⡴⠶⢦⡀⢰⡄$3⠀⠀⠀⠀⠀⠀⠀⠀ +$3⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠋⣼⣿⣿⣶⣬⣛⠽⠶⠿⠿⢿⣿⣿⣿⣿⣿⣷⣌$1⠰⢶⣿⣿⡇⢸⡇$3⠀⠀⠀⠀⠀⠀⠀⠀ +$3⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣭⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣾⣷⣿⣭⣛⠻⢿⣿⣷⣦$1⡍⠛⠃⢰⠁⣤⣀$3⠀⠀⠀⠀⠀⠀ +$3⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⣿⣿⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢿⣶⣟⢿⣿⣿⡌⢷⣦⡐⣦⣍⠻⣦⡀⠀⠀⠀ +$3⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⣿⡷⣿⣿⣿⣿⣿⣿⣿⣟⢿⣿⣿⣿⣿⣿⣿⣦⣝⢿⣷⡙⢿⣇⠘$3⣿⣿⡜⣿⣧⡘⠻⣦⡀⠀ +$3⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⣿⣿⡟⣷⠸⣿⣿⣿⢿⣿⣿⣿⣧⡙⠿⣿⣿⣷⣌⢿⣿⣿⣦⡙⢿⣦⠁⠀$3⢻⣿⣿⣿⣿⣿⡄⠘⢷⡀ +$3⠀⠀⠀⠀⠀⠀⠀⠀⠠⢡⣿⣿⢸⣿⡇⠘$7⢢$3⠹⣿⣿⣧⠙⠛⢿⣿⡳⠄⠈⠻⣏⠻⣦⠻⡿⣿⣷⡄⢍⠳⠀⠘⣿⣿⣿⣿⣯⢻⠀⠀⠑ +$3⠀⠀⠀⠀⠀⠀⠀⠀⠀⡾⢸⣿⢸⣿$7⠁⡀⢸⣆$7$3⠘⣿⡏$7⢆⢷⣄$3⠙⢿⣆⠈⢠⣈⠳⡝⢧⡑⢌⠻⣿⡄⠂⠀⠀⣿⣿⣿⣿⣻⡘⡇⠀⠀ +$3⠀⠀⠀⠀⠀⠀⠀⠀⢰⡇⢸⣿⢸⣿$7⠀⡅⢘⠿⣦$7$3⠘⣿⡄$7⠈⣭⣴⣦⣝$3⠳⢌⢻⣷⣮⡀⠑⠀⠀⠈⠹⣆⠀⡄$3⣿⣿⣿⣿⣿⣇⠹⠀⠀ +$3⠀⠀⠀⠀⠀⠀⠀⠀⠸⡇⠀⢿⡇⣿$7⠀⣿⣼⣿⣎⢧$7$3⡘⢿$7⠀⢹⡿⢟⣫⣵⠦⠀⠉⡁⣽⣧⠀$7⡐⣷⣦$7⠀$3⢀⡁$3⣿⣿⣿⣿⣿⣿⠀⠀⠀ +$7⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀$3⠘⣧⠘$7⠀⣄⢉⡉⠒⠂⠻⣆⠀⠀⣷⠉⣀⣄⠀⠀⠀⣧⣿⡟⠀⠙⢿⡟$3⢀⣿⢡⣿⣿⣿⣿⣿⣿⡆⠀⠀ +$7⠀⠀⠀⠀⠀⠀⠀⢀⣴⣾⣿⣆$3⠙⠀$7⡰$7⡌⢷⣷⣄⠀⢰⣿⣷⡀⢿⣶⣿⣿⣧⣶⣿⣿⣿⣷⡟⣠⠞$3⢠⣾⡟⣸⣿⣿⣿⣿⣿⣿⡇⠀⠀ +$7⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⣿⣿⣷⣦⣹⡿$7⠈⢻⣿⣾⣿⣿⣿⣿⣷⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃⠁$3⣴⣿⣿⠇⣿⣿⣿⣿⣿⣿⣿⣇⠀⠀ +$7⠀⠀⠀⢠⣾⣿⣿⣿⣿⣿⣿⣿⡿⠛⢋$3⣠⣥⡌$7⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⣁⡀$3⣼⣿⣿⡿⢸⣿⣿⣿⣿⢿⣿⣿⣿⠀⠀ +$7⠀⠀⢀⣿⣿⣿⣿⣿⣿⣿⡿⠟⢃$3⢠⣿⣿⣿⣿⡌$7⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⣡⣾⣿$3⢠⣿⠏⢹⢇⣿⣿⣿⣿⡇$3⣾⣿⣿⣿⠀⠀ +$7⠀⠀⣼⣿⣿⣿⣿⣿⠋⠁⠀⠀$3⣼⣾⣿⣿⣿⡿⠸⣓⡊$7⠙⠛⠿⣿⣿⣿⡿⢛⣵⣾⣿⣿⣿$3⢸⡟⠀⠏⢸⣿⡿⣹⣿⢱$3⣿⣿⣿⣿⠀⠀ +$7⠀⣰⣿⣿⣿⣿⣿⡏⠀⠀⠀$3⣼⣿⣿⣿⡿⣫$7⣶⣿⡿⢋⠴⢂⣤⣤⣭⢡⣾⣿⣿⣿⣿⣿⣿$3⡎⠁⠘⠀⣼⣿⢣⣿⡏$3⣼⢿⣿⣿⣿⠀⠀ +$7⢠⣿⣿⣿⣿⣿⡿⠀⠀⠀$3⣼⣿⢿⣿⠏$7⣼⣿⣿⡟⡰⢡⡸⣿⣿⣿⣿⡆⣿⣿⣿⣿⣿⣿⣿⡗$3⢀⡀⣼⣿⢏⣾⡿⢱$3⡏⢸⣿⣿⣿⠀⠀ +$7⣾⣿⣿⣿⣿⣿⠇⠀⠀$3⣼⡿⢣⣾⢏$7⣼⣿⣿⠿⠀⢡⣿⣷⡝⣿⣿⣿⣷⣿⣿⣿⣿⣿⣿⣿$3⢁⡞⣼⣿⠏⣼⣿⢁$3⣿⢣⢸⣿⣿⣿⠀⠀ +$7⣿⣿⣿⣿⣿⡿⠀⠀$3⣼⡿⢀⡿⢋$7⣾⣿⣿⣿⠀⢠⣾⣿⣿⣿⡌⢿⡿⢿⣛⣯⣿⣿⣿⡿⠃$3⢮⣾⣿⠏⣼⡿⠃$3⣾⠏⣾⢸⣿⣿⣿⠀⠀ +$7⣿⣿⣿⣿⣿⠇⠀$3⣸⣿⠃⢈$7⣴⣿⣿⣿⣿⠏⢠⣿⣿⣿⣿⣿⣿⣤⣾⣿⡿⠿⠿⠿⠟⡁$3⣰⣿⣿⢋⣾⡿$3⣡⠖⢈⡸⠇⣼⣿⣿⣿⠀⠀ +$7⣿⣿⣿⣿⡿⠀$3⢠⡿⢋$7⣴⣿⣿⣿⣿⡿⠋⣠⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠋⢀⡀$3⢸⣿⡿⢣⣾⠟⠐$7⢡⣶⣿⣿⣦$3⡙⢿⣿⣿⡇⠀ +$7⣿⣿⣿⣿⡇⠀$7⢀⣴⣿⣿⣿⣿⣿⡟⢁⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣶⣿⣿⠁$3⣼⡟⣰⣿⠋$7⠀⣴⣿⣿⠿⠋⣁⣴⣦$3⡙⢿⡇⠀ +$7⣿⣿⣿⣿⢁$7⣴⣿⣿⣿⣿⣿⡿⢫⡄⠘⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇$3⢸⠟⣼⠟⡁$7⢀⣼⠿⡋⣁⣴⣾⣿⣿⣿⣿⣎$3⠇ diff --git a/home/dots/fastfetch/config.jsonc b/home/dots/fastfetch/config.jsonc new file mode 100644 index 0000000..9104e7f --- /dev/null +++ b/home/dots/fastfetch/config.jsonc @@ -0,0 +1,123 @@ +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "logo": { + "source": "~/.config/fastfetch/asuka.txt", + "type": "file", + "padding": { + "top": 1, + "right": 2 + }, + "color": { + "1": "red", + "2": "green", + "3": "yellow", + "4": "blue", + "5": "magenta", + "6": "cyan", + "7": "white" + } + }, + "display": { + "separator": "▐ ", + "color": { + "separator": "cyan" + } + }, + "modules": [ + "break", + "break", + "break", + "break", + { + "type": "custom", + "format": "┌────────────────────────────────────┐" + }, + { + "type": "title", + "format": "│ {user-name-colored}@{host-name-colored}", + "color": { + "user": "yellow", + "host": "red" + } + }, + { + "type": "custom", + "format": "├────────────────────────────────────┤" + }, + { + "type": "os", + "key": "│ \u001b[5m{#1}os {#}", + "keyColor": "red" + }, + { + "type": "kernel", + "key": "│ \u001b[5m{#7}kernel{#}", + "keyColor": "white", + "format": "{release}" + }, + { + "type": "packages", + "key": "│ \u001b[5m{#2}pkgs {#}", + "keyColor": "green", + "format": "{all}" + }, + { + "type": "shell", + "key": "│ \u001b[5m{#5}shell {#}", + "keyColor": "magenta", + "format": "{exe-name}" + }, + { + "type": "wm", + "key": "│ \u001b[5m{#6}wm {#}", + "keyColor": "cyan" + }, + { + "type": "terminal", + "key": "│ \u001b[5m{#5}term {#}", + "keyColor": "magenta", + "format": "{pretty-name}" + }, + { + "type": "cpu", + "key": "│ \u001b[5m{#1}cpu {#}", + "keyColor": "red", + "format": "{name}" + }, + { + "type": "memory", + "key": "│ \u001b[5m{#6}ram {#}", + "keyColor": "cyan", + "format": "{used} / {total}" + }, + { + "type": "swap", + "key": "│ \u001b[5m{#6}swap {#}", + "keyColor": "cyan", + "format": "{used} / {total}" + }, + { + "type": "disk", + "key": "│ \u001b[5m{#4}disk 1{#}", + "keyColor": "blue", + "folders": ["/"], + "format": "{size-used} / {size-total} ({size-percentage})" + }, + { + "type": "disk", + "key": "│ \u001b[5m{#4}disk 2{#}", + "keyColor": "blue", + "folders": ["/mnt/HDD"], + "format": "{size-used} / {size-total} ({size-percentage})" + }, + { + "type": "custom", + "format": "└────────────────────────────────────┘" + }, + "break", + { + "type": "custom", + "format": " \u001b[31m● \u001b[32m● \u001b[33m● \u001b[34m● \u001b[35m● \u001b[36m● \u001b[37m● \u001b[31m● \u001b[32m● \u001b[33m●" + } + ] +} diff --git a/home/dots/fastfetch/fastfetch_kayan.sh b/home/dots/fastfetch/fastfetch_kayan.sh new file mode 100755 index 0000000..937b6ae --- /dev/null +++ b/home/dots/fastfetch/fastfetch_kayan.sh @@ -0,0 +1,182 @@ +#!/usr/bin/env zsh + +# Check if animation already ran this boot session +EVA_FLAG="/tmp/eva_displayed_$USER" + +if [[ -f "$EVA_FLAG" ]]; then + # Animation already shown this boot, just run fastfetch + fastfetch + exit 0 +fi + +# Create flag file for this boot session +touch "$EVA_FLAG" + +# Metinler +JP="エヴァンゲリオン・ユニット02 システム初期化!" +DE="EVANGELION EINHEIT-02 SYSTEM INITIALISIERUNG!" +EN="EVANGELION UNIT-02 SYSTEM INITIALIZED!" + +# Renk gradyanı +COLORS=( + "\033[38;5;196m" + "\033[38;5;202m" + "\033[38;5;208m" + "\033[38;5;214m" + "\033[38;5;220m" + "\033[38;5;226m" +) +RESET="\033[0m" + +# Terminal boyutları +width=$(tput cols) +height=$(tput lines) +jp_len=${#JP} +de_len=${#DE} +en_len=${#EN} + +# Orta nokta +mid_line=1 # Üst satırda göster +center_col=$(( width / 2 )) + +# Ekranı temizle ve imleci gizle +clear +tput civis + +# Çarpışma animasyonu - soldan JP, sağdan DE +collision_point=$center_col + +# Toplam adım sayısını hesapla (2 saniye için daha yavaş) +total_steps=80 +sleep_time=0.025 # 2 saniye / 80 adım + +for ((i=0; i<=total_steps; i++)); do + # Sol taraftan Japonca (soldan sağa) + jp_pos=$(( i * collision_point / total_steps )) + jp_color_idx=$(( i % ${#COLORS[@]} )) + jp_color=${COLORS[$((jp_color_idx + 1))]} + + # Sağ taraftan Almanca (sağdan sola) + de_pos=$(( width - (i * collision_point / total_steps) - de_len )) + de_color_idx=$(( (total_steps - i) % ${#COLORS[@]} )) + de_color=${COLORS[$((de_color_idx + 1))]} + + # Ekranı temizle ve metinleri çiz + printf "\033[${mid_line};1H\033[2K" + + # Japonca metni yaz + if (( jp_pos >= 0 && jp_pos < width )); then + printf "\033[${mid_line};${jp_pos}H${jp_color}${JP}${RESET}" + fi + + # Almanca metni yaz + if (( de_pos >= 0 && de_pos < width )); then + printf "\033[${mid_line};${de_pos}H${de_color}${DE}${RESET}" + fi + + sleep $sleep_time +done + +# İç içe geçme animasyonu - metinler birbiri üzerine gelir +for ((i=0; i<=20; i++)); do + overlap=$(( i * 3 )) + + jp_pos=$(( center_col - jp_len / 2 + overlap )) + de_pos=$(( center_col - de_len / 2 - overlap )) + + jp_color_idx=$(( i % ${#COLORS[@]} )) + jp_color=${COLORS[$((jp_color_idx + 1))]} + de_color=${COLORS[$(( (20 - i) % ${#COLORS[@]} + 1 ))]} + + printf "\033[${mid_line};1H\033[2K" + + # Her iki metni de aynı anda göster/gizle + if (( de_pos >= 0 )); then + printf "\033[${mid_line};${de_pos}H${de_color}${DE}${RESET}" + fi + if (( jp_pos >= 0 )); then + printf "\033[${mid_line};${jp_pos}H${jp_color}${JP}${RESET}" + fi + + sleep 0.03 +done + +# Metinler tam üst üste gelince İngilizce ortaya çıkar +en_center=$(( (width - en_len) / 2 )) +for ((i=0; i<=10; i++)); do + alpha=$(( i * 10 )) + + printf "\033[${mid_line};1H\033[2K" + + # JP ve DE aynı anda kaybolur + if (( i < 8 )); then + fade_amount=$(( i * 8 )) + jp_pos=$(( center_col - jp_len / 2 + fade_amount )) + de_pos=$(( center_col - de_len / 2 - fade_amount )) + faded_color=${COLORS[6]} + + if (( de_pos >= 0 )); then + printf "\033[${mid_line};${de_pos}H${faded_color}${DE}${RESET}" + fi + if (( jp_pos >= 0 && jp_pos < width )); then + printf "\033[${mid_line};${jp_pos}H${faded_color}${JP}${RESET}" + fi + fi + + # İngilizce giderek belirginleşir + if (( i > 3 )); then + printf "\033[${mid_line};${en_center}H${COLORS[1]}${EN}${RESET}" + fi + + sleep 0.05 +done + +# Son çarpışma efekti +sleep 0.15 + +# Ekranı tamamen temizle +clear + +# Fastfetch'i arka planda başlat +fastfetch & +FF_PID=$! + +# İngilizce yazı için gradient renkler (kırmızı-sarı) +BLINK_COLORS=( + "\033[38;5;196m" # Kırmızı + "\033[38;5;202m" # Turuncu-kırmızı + "\033[38;5;208m" # Turuncu + "\033[38;5;214m" # Sarı-turuncu + "\033[38;5;220m" # Sarı + "\033[38;5;226m" # Parlak sarı + "\033[38;5;220m" # Sarı + "\033[38;5;214m" # Sarı-turuncu + "\033[38;5;208m" # Turuncu + "\033[38;5;202m" # Turuncu-kırmızı +) + +# İngilizce yazı ile blink efekti (fastfetch ile BERABER) +en_pos=$(( (width - en_len) / 2 )) + +for i in {1..10}; do + color_idx=$(( (i - 1) % ${#BLINK_COLORS[@]} )) + blink_color=${BLINK_COLORS[$color_idx]} + + # Göster - İngilizce yazı gradient ile + printf "\033[1;${en_pos}H${blink_color}${EN}${RESET}" + sleep 0.1 + + # Gizle - sadece ilk satırı temizle + printf "\033[1;1H\033[2K" + sleep 0.1 +done + +# Son kez İngilizce yazıyı göster (kırmızı renkte) +printf "\033[1;${en_pos}H${COLORS[1]}${EN}${RESET}\n" + +# Fastfetch'in bitmesini bekle +wait $FF_PID + +# İmleci göster ve en alta git +tput cnorm +printf "\033[${height};1H" diff --git a/home/dots/fish/auto-Hypr.fish b/home/dots/fish/auto-Hypr.fish new file mode 100644 index 0000000..893451c --- /dev/null +++ b/home/dots/fish/auto-Hypr.fish @@ -0,0 +1,5 @@ +# Auto start Hyprland on tty1 +if test -z "$DISPLAY" ;and test "$XDG_VTNR" -eq 1 + mkdir -p ~/.cache + exec start-hyprland > ~/.cache/hyprland.log 2>&1 +end diff --git a/home/dots/fish/conf.d/fish_frozen_key_bindings.fish b/home/dots/fish/conf.d/fish_frozen_key_bindings.fish new file mode 100644 index 0000000..495aee9 --- /dev/null +++ b/home/dots/fish/conf.d/fish_frozen_key_bindings.fish @@ -0,0 +1,14 @@ +# This file was created by fish when upgrading to version 4.3, to migrate +# the 'fish_key_bindings' variable from its old default scope (universal) +# to its new default scope (global). We recommend you delete this file +# and configure key bindings in ~/.config/fish/config.fish if needed. + +# set --global fish_key_bindings fish_default_key_bindings + +# Prior to version 4.3, fish shipped an event handler that runs +# `set --universal fish_key_bindings fish_default_key_bindings` +# whenever the fish_key_bindings variable is erased. +# This means that as long as any fish < 4.3 is still running on this system, +# we cannot complete the migration. +# As a workaround, erase the universal variable at every shell startup. +set --erase --universal fish_key_bindings diff --git a/home/dots/fish/conf.d/fish_frozen_theme.fish b/home/dots/fish/conf.d/fish_frozen_theme.fish new file mode 100644 index 0000000..bf656ee --- /dev/null +++ b/home/dots/fish/conf.d/fish_frozen_theme.fish @@ -0,0 +1,37 @@ +# This file was created by fish when upgrading to version 4.3, to migrate +# theme variables from universal to global scope. +# Don't edit this file, as it will be written by the web-config tool (`fish_config`). +# To customize your theme, delete this file and see +# help interactive#syntax-highlighting +# or +# man fish-interactive | less +/^SYNTAX.HIGHLIGHTING +# for appropriate commands to add to ~/.config/fish/config.fish instead. +# See also the release notes for fish 4.3.0 (run `help relnotes`). + +set --global fish_color_autosuggestion 555 brblack +set --global fish_color_cancel -r +set --global fish_color_command blue +set --global fish_color_comment red +set --global fish_color_cwd green +set --global fish_color_cwd_root red +set --global fish_color_end green +set --global fish_color_error brred +set --global fish_color_escape brcyan +set --global fish_color_history_current --bold +set --global fish_color_host normal +set --global fish_color_host_remote yellow +set --global fish_color_normal normal +set --global fish_color_operator brcyan +set --global fish_color_param cyan +set --global fish_color_quote yellow +set --global fish_color_redirection cyan --bold +set --global fish_color_search_match --background=111 +set --global fish_color_selection white --bold --background=brblack +set --global fish_color_status red +set --global fish_color_user brgreen +set --global fish_color_valid_path --underline +set --global fish_pager_color_completion normal +set --global fish_pager_color_description B3A06D yellow -i +set --global fish_pager_color_prefix cyan --bold --underline +set --global fish_pager_color_progress brwhite --background=cyan +set --global fish_pager_color_selected_background -r diff --git a/home/dots/fish/config.fish b/home/dots/fish/config.fish new file mode 100755 index 0000000..0d26fe1 --- /dev/null +++ b/home/dots/fish/config.fish @@ -0,0 +1,28 @@ +function fish_prompt -d "Write out the prompt" + # This shows up as USER@HOST /home/user/ >, with the directory colored + # $USER and $hostname are set by fish, so you can just use them + # instead of using `whoami` and `hostname` + printf '%s@%s %s%s%s > ' $USER $hostname \ + (set_color $fish_color_cwd) (prompt_pwd) (set_color normal) +end + +if status is-interactive # Commands to run in interactive sessions can go here + + # No greeting + set fish_greeting + + # Use starship + starship init fish | source + if test -f ~/.local/state/quickshell/user/generated/terminal/sequences.txt + cat ~/.local/state/quickshell/user/generated/terminal/sequences.txt + end + + # Aliases + alias clear "printf '\033[2J\033[3J\033[1;1H'" # fix: kitty doesn't clear properly + alias celar "printf '\033[2J\033[3J\033[1;1H'" + alias claer "printf '\033[2J\033[3J\033[1;1H'" + alias ls 'eza --icons' + alias pamcan pacman + alias q 'qs -c ii' + +end diff --git a/home/dots/fish/fish_variables b/home/dots/fish/fish_variables new file mode 100755 index 0000000..bdf07d5 --- /dev/null +++ b/home/dots/fish/fish_variables @@ -0,0 +1,6 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:4300 +SETUVAR _fisher_jorgebucaran_2F_fisher_files:\x7e/\x2econfig/fish/functions/fisher\x2efish\x1e\x7e/\x2econfig/fish/completions/fisher\x2efish +SETUVAR _fisher_plugins:jorgebucaran/fisher +SETUVAR _fisher_upgraded_to_4_4:\x1d diff --git a/home/dots/zsh/.zshrc b/home/dots/zsh/.zshrc new file mode 100644 index 0000000..3a32398 --- /dev/null +++ b/home/dots/zsh/.zshrc @@ -0,0 +1,96 @@ +# elarsın muhtesem configi +eval "$(starship init zsh)" + +# deps +#source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh +#source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + +# FZF +#source /usr/share/fzf/key-bindings.zsh +#source /usr/share/fzf/completion.zsh +export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border' +export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git' + +# eza alias +alias ls='eza --icons --group-directories-first' +alias ll='eza -lah --icons --group-directories-first' +alias la='eza -a --icons --group-directories-first' +alias lt='eza --tree --level=2 --icons' + +# allias extra +alias cat='bat' +alias grep='grep --color=auto' +alias df='df -h' +alias du='du -h' +alias free='free -h' + +alias nano='micro' +alias edit='micro' +export EDITOR=micro +export VISUAL=micro +export SUDO_EDITOR=micro + +# arch shit +#alias update='sudo pacman -Syu' +#alias install='sudo pacman -S' +#alias remove='sudo pacman -Rns' +#alias search='pacman -Ss' +#alias orphans='sudo pacman -Rns $(pacman -Qtdq)' +#alias mirrors='sudo reflector --verbose --latest 10 --sort rate --save /etc/pacman.d/mirrorlist' + +# system +alias sysinfo='fastfetch' +alias monitor='btop' +alias ports='sudo netstat -tulpn' +alias myip='curl ifconfig.me' + +# navigation +alias ..='cd ..' +alias ...='cd ../..' +alias ....='cd ../../..' +alias ~='cd ~' +alias -- -='cd -' + +# git +alias gs='git status' +alias ga='git add' +alias gc='git commit -m' +alias gp='git push' +alias gl='git log --oneline --graph --decorate' + +# confs +alias zshrc='micro ~/.zshrc' +alias reload='source ~/.zshrc' + +# history +HISTSIZE=10000 +SAVEHIST=10000 +HISTFILE=~/.zsh_history +setopt HIST_IGNORE_DUPS +setopt HIST_IGNORE_SPACE +setopt SHARE_HISTORY + +# completion +autoload -Uz compinit +compinit +zstyle ':completion:*' menu select +zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' +setopt AUTO_CD + +# intro +if [[ -o interactive ]]; then + ~/.config/fastfetch/fastfetch_kayan.sh +fi + +# colors +export CLICOLOR=1 +export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43' + +# sdkman +export SDKMAN_DIR="$HOME/.sdkman" +[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" + +#mesa +export MESA_SHADER_CACHE_MAX_SIZE=2G +export MESA_SHADER_CACHE_DIR=/tmp/mesa_shader_cache +export PATH="$HOME/.local/bin:$PATH"