feat: add script

This commit is contained in:
2024-06-05 19:37:18 +08:00
parent 6283ab3cfb
commit f0186eaefb
8 changed files with 26 additions and 1 deletions
+10 -1
View File
@@ -1,3 +1,6 @@
fish_vi_key_bindings
## set environment ## set environment
# brew # brew
@@ -13,10 +16,14 @@ set -gx GOSUMDB "sum.golang.google.cn"
set -gx PATH $PATH $HOME/go/bin set -gx PATH $PATH $HOME/go/bin
set -gx PATH $PATH $HOME/.yarn/bin $HOME/.config/yarn/global/node_modules/.bin set -gx PATH $PATH $HOME/.yarn/bin $HOME/.config/yarn/global/node_modules/.bin
set -gx PATH $PATH /usr/local/sbin set -gx PATH $PATH /usr/local/sbin
# add nvim # add nvim
set -gx PATH $PATH /usr/local/nvim/bin /usr/local/osx-64/nvim/bin set -gx PATH $PATH /usr/local/nvim/bin /usr/local/osx-64/nvim/bin
set -gx EDITOR vim set -gx EDITOR vim
# add my script
set -gx PATH $PATH $HOME/.dotfile/script $HOME/.app00/script
# alias # alias
# git # git
alias gitb="git branch --show-current | tr -d '\n' | pbcopy" alias gitb="git branch --show-current | tr -d '\n' | pbcopy"
@@ -31,7 +38,9 @@ function gtr
go test -gcflags=all=-l -v -run=$argv go test -gcflags=all=-l -v -run=$argv
end end
if test -f ~/.config/fish/custom.fish
source ~/.config/fish/custom.fish
end
+1
View File
@@ -0,0 +1 @@
#!/bin/bash
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
docker system prune -a
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
cd ~/Downloads/
wget https://github.com/tonsky/FiraCode/releases/download/6.2/Fira_Code_v6.2.zip
echo '1. unzip Fira_Code_v6.2.zip'
echo '2. select all file and install it'
open ~/Downloads/
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
echo /usr/local/bin/fish | sudo tee -a /etc/shells
chsh -s /usr/local/bin/fish