ติดตั้ง fish กับ oh-my-posh ใน debian desktop

1.ติดตั้ง Fish Shell ก่อน โดยใช้คำสั่ง sudo apt install fish -y

2.เปิด Fish Shell ขึ้นมา ต่อไปเราจะใช้ Fish แทน Terminal ตัวเดิม

3.ติดตั้ง oh-my-posh โดยใช้คำสั่ง curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/bin
มันจะติดตั้งลงใน folder bin ที่อยู่ใน home/ชือuser ครับ

4.ติดตั้ง themes ใช้คำสั่ง git clone https://github.com/JanDeDobbeleer/oh-my-posh.git posh-themes มันจะดาวน์โหลด themes มาไว้ใน home/ชื่อuser/posh-themes ครับ

5.ให้เปิดไฟล์ config.fish พิมพ์คำสั่ง nano ~/.config/fish/config.fish แล้วเพิ่มบรรทัดนี้ไว้บนสุด 
fish_add_path ~/bin
oh-my-posh init fish --config ~/posh-themes/themes/catppuccin.omp.json | source
กด control + x แล้วกด y และกด enter ตอนนี้เราก็ได้ติดตั้งเสร็จแล้วในส่วนของ Userทั่วไป

6.สร้างไฟล์ Config ของ Root โฟลเดอร์ config ของ root มักจะยังไม่มีอยู่ เราต้องสร้างขึ้นมาใหม่
login เข้าroot ก่อน แล้วใช้คำสั่ง mkdir -p /root/.config/fish และคำสั่ง nano /root/.config/fish/config.fish

7.เพิ่มบรรทัดนี้ไว้บนสุด
fish_add_path /home/ชื่อuser/bin
oh-my-posh init fish --config /home/ชื่อuser/posh-themes/themes/catppuccin.omp.json | source
กด control + x แล้วกด y 

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

วิธีใช้งาน Ubuntu Server && Debian Server

ติดตั้ง pip3 ใน linux และวิธีใช้งาน

สร้าง Service ให้ Run สคริปต์ Python ใน Debian