mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
40 lines
934 B
Fish
40 lines
934 B
Fish
# $DOTFILES/tools/fish/config.fish
|
|
# Date: 2024-12-15
|
|
# Author: js0ny
|
|
# Define interactive shell configurations for fish
|
|
|
|
# Location:
|
|
# ~/.config/fish/config.fish (default location)
|
|
# Linking: Link the whole directory for submodules
|
|
# ln -sf $DOTFILES/tools/fish ~/.config/fish
|
|
|
|
if status is-interactive
|
|
# Commands to run in interactive sessions can go here
|
|
set fish_greeting
|
|
switch (uname)
|
|
case "Darwin"
|
|
# macOS Specific
|
|
abbr --add clip pbcopy
|
|
abbr --add paste pbpaste
|
|
# Use GNU Coreutils
|
|
alias cp=gcp
|
|
alias ln=gln
|
|
alias mkdir=gmkdir
|
|
alias mv=gmv
|
|
alias rm=grm
|
|
alias rmdir=grmdir
|
|
alias touch=gtouch
|
|
|
|
case "Linux"
|
|
# Linux Specific
|
|
case '*'
|
|
# Default / Fallback case
|
|
end
|
|
end
|
|
|
|
# bun
|
|
set --export BUN_INSTALL "$HOME/.bun"
|
|
set --export PATH $BUN_INSTALL/bin $PATH
|
|
|
|
# moonbit
|
|
fish_add_path "$HOME/.moon/bin"
|