migrate to specific folder & add fish conf
This commit is contained in:
parent
7c63ae9df9
commit
687a8696e3
45 changed files with 74 additions and 0 deletions
1
.chezmoiroot
Normal file
1
.chezmoiroot
Normal file
|
@ -0,0 +1 @@
|
|||
home
|
49
home/private_dot_config/private_fish/config.fish
Normal file
49
home/private_dot_config/private_fish/config.fish
Normal file
|
@ -0,0 +1,49 @@
|
|||
if status is-interactive
|
||||
# Commands to run in interactive sessions can go here
|
||||
end
|
||||
|
||||
# starship custom conf
|
||||
set -gx STARSHIP_CONFIG $__fish_config_dir/starship.toml
|
||||
# starship custom conf end
|
||||
starship init fish | source
|
||||
# greeting
|
||||
function fish_greeting
|
||||
cat $__fish_config_dir/motd
|
||||
end
|
||||
# greeting end
|
||||
# pnpm
|
||||
set -gx PNPM_HOME "/home/grassblock/.local/share/pnpm"
|
||||
if not string match -q -- $PNPM_HOME $PATH
|
||||
set -gx PATH "$PNPM_HOME" $PATH
|
||||
end
|
||||
# pnpm end
|
||||
|
||||
# ssh-agent
|
||||
#set SSH_ENV_FILE "$HOME/.ssh/agent-environment"
|
||||
#set SSH_TIMEOUT 86400 # 24 hours in seconds
|
||||
|
||||
#function ssh_start_agent
|
||||
# ssh-agent -c -t "$SSH_TIMEOUT" > "$SSH_ENV_FILE"
|
||||
# chmod 600 "$SSH_ENV_FILE"
|
||||
# source "$SSH_ENV_FILE"
|
||||
# ssh-add # [<id_rsa_path>] Change to your path
|
||||
#end
|
||||
|
||||
#if test -f "$SSH_ENV_FILE"
|
||||
# source "$SSH_ENV_FILE"
|
||||
# if not ps -p "$SSH_AGENT_PID" > /dev/null
|
||||
# ssh_start_agent
|
||||
# end
|
||||
#else
|
||||
# ssh_start_agent
|
||||
#end
|
||||
## ssh-agent-end
|
||||
rvm default
|
||||
|
||||
# Created by `pipx` on 2023-10-13 01:41:55
|
||||
set PATH $PATH /home/grassblock/.local/bin
|
||||
# pipx end
|
||||
|
||||
# 0x0 start
|
||||
|
||||
#0x0 end
|
10
home/private_dot_config/private_fish/motd
Normal file
10
home/private_dot_config/private_fish/motd
Normal file
|
@ -0,0 +1,10 @@
|
|||
________ ___ ________ ___ ___
|
||||
|\ _____\|\ \ |\ ____\ |\ \|\ \
|
||||
\ \ \__/ \ \ \\ \ \___|_\ \ \\\ \
|
||||
\ \ __\ \ \ \\ \_____ \\ \ __ \
|
||||
\ \ \_| \ \ \\|____|\ \\ \ \ \ \
|
||||
\ \__\ \ \__\ ____\_\ \\ \__\ \__\
|
||||
\|__| \|__||\_________\\|__|\|__|
|
||||
\|_________|
|
||||
|
||||
Welcome to fish!
|
14
home/private_dot_config/private_fish/starship.toml
Normal file
14
home/private_dot_config/private_fish/starship.toml
Normal file
|
@ -0,0 +1,14 @@
|
|||
# 根据 schema 提供自动补全
|
||||
"$schema" = 'https://starship.rs/config-schema.json'
|
||||
|
||||
# 在提示符之间插入空行
|
||||
add_newline = true
|
||||
|
||||
# 将提示符中的 '❯' 替换为 '➜'
|
||||
[character] # 此模块名称为 'character'
|
||||
success_symbol = '[➜](bold green)' # 将 'success_symbol' 片段设置成颜色为 'bold green' 的 '➜'
|
||||
error_symbol = '[➜](bold red)'
|
||||
|
||||
# duration
|
||||
[cmd_duration]
|
||||
format = '[$duration](bold yellow)'
|
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
Loading…
Add table
Add a link
Reference in a new issue