My Nix Infra
nix nixos
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add gitconfig-csit, change to *.fish

ydcjeff b2bb6169 59591dae

+23 -16
aliases.sh abbr.fish
+7 -7
fishrc.sh config.fish
··· 1 - #!/usr/bin/env fish 2 - 3 1 set -gx EDITOR code 4 2 set -gx DOTFILES_PATH $HOME/.dotfiles 5 3 set -gx XDG_CONFIG_HOME $HOME/.config ··· 12 10 13 11 fish_add_path $HOME/.cargo/bin 14 12 fish_add_path $HOME/.deno/bin 13 + fish_add_path $HOME/.composer/vendor/bin 14 + fish_add_path $HOME/.local/share/pnpm 15 15 16 - source $DOTFILES_PATH/aliases.sh 16 + source $DOTFILES_PATH/abbr.fish 17 17 18 18 # mac or linux 19 19 switch (uname) 20 - case Linux 21 - echo "> Linux profile $FISH_CONFIG loaded." 22 - case Darwin 23 - echo "> macOS profile $FISH_CONFIG loaded." 20 + case Linux 21 + echo "> Linux profile $FISH_CONFIG loaded." 22 + case Darwin 23 + echo "> macOS profile $FISH_CONFIG loaded." 24 24 end 25 25 26 26 starship init fish | source
+7
gitconfig-csit
··· 1 + [core] 2 + hookspath = ~/csit/githooks 3 + [user] 4 + name = De-Cheng Yang 5 + email = dcyang@cs.nctu.edu.tw 6 + [credential "https://gitlab.it.cs.nycu.edu.tw"] 7 + helper = "/usr/bin/glab auth git-credential"
+9 -9
setup.sh
··· 3 3 set -eo pipefail 4 4 5 5 has() { 6 - command -v "$1" 1>/dev/null 2>&1 6 + command -v "$1" >/dev/null 2>&1 7 7 } 8 8 9 9 # clone dotfiles 10 10 if [ -d $HOME/.dotfiles ]; then 11 - echo "> .dotfiles dir exist, not cloning" 11 + echo "> .dotfiles dir exist, not cloning" 12 12 else 13 - git clone https://gitlab.com/ydcjeff/dotfiles $HOME/.dotfiles 13 + git clone https://gitlab.com/ydcjeff/dotfiles $HOME/.dotfiles 14 14 fi 15 15 16 16 # install starship 17 17 if has starship; then 18 - echo "> $(starship -V) exist, not installing" 18 + echo "> $(starship -V) exist, not installing" 19 19 else 20 - curl -fsSL https://starship.rs/install.sh --output ./install.sh 21 - chmod +x ./install.sh 22 - ./install.sh -y 20 + curl -sS https://starship.rs/install.sh | sh 23 21 fi 24 22 25 23 # source dot files 26 24 echo "> Sourcing dotfiles" 27 25 mkdir -p $HOME/.config/fish 28 - echo "source $HOME/.dotfiles/fishrc.sh" > $HOME/.config/fish/config.fish 26 + ln -sf $HOME/.dotfiles/config.fish $HOME/.config/fish/config.fish 29 27 30 - # Some git defaults 28 + # git defaults 31 29 git config --global color.ui true 32 30 git config --global push.default simple 33 31 git config --global fetch.prune true ··· 35 33 git config --global user.name "ydcjeff" 36 34 git config --global user.email "n2ya@duck.com" 37 35 git config --global core.editor "nvim" 36 + git config --global init.defaultBranch main 37 + git config --global includeIf.gitdir/i:$HOME/csit/.path $HOME/.dotfiles/gitconfig-csit