Skip to content

Commit cf246c2

Browse files
committed
chore: remove execute permission for some scripts
1 parent eb8919b commit cf246c2

6 files changed

Lines changed: 359 additions & 0 deletions

File tree

notes-OS/Linux/attachments/scripts/change_to_list.sh

100755100644
File mode changed.

notes-OS/Linux/attachments/scripts/ping_urls.sh

100755100644
File mode changed.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# ~/.config/starship.toml
2+
3+
[battery]
4+
full_symbol = "🔋"
5+
charging_symbol = "🔌"
6+
discharging_symbol = ""
7+
8+
[[battery.display]]
9+
threshold = 30
10+
style = "bold red"
11+
12+
[character]
13+
error_symbol = "[✖](bold red) "
14+
15+
[cmd_duration]
16+
min_time = 10_000 # Show command duration over 10,000 milliseconds (=10 sec)
17+
format = " took [$duration]($style)"
18+
19+
[directory]
20+
truncation_length = 5
21+
format = "[$path]($style)[$lock_symbol]($lock_style) "
22+
23+
[git_branch]
24+
format = " [$symbol$branch]($style) "
25+
symbol = "🍣 "
26+
style = "bold yellow"
27+
28+
[git_commit]
29+
commit_hash_length = 8
30+
style = "bold white"
31+
32+
[git_state]
33+
format = '[\($state( $progress_current of $progress_total)\)]($style) '
34+
35+
[git_status]
36+
conflicted = "⚔️ "
37+
ahead = "🏎️ 💨 ×${count}"
38+
behind = "🐢 ×${count}"
39+
diverged = "🔱 🏎️ 💨 ×${ahead_count} 🐢 ×${behind_count}"
40+
untracked = "🛤️ ×${count}"
41+
stashed = "📦 "
42+
modified = "📝 ×${count}"
43+
staged = "🗃️ ×${count}"
44+
renamed = "📛 ×${count}"
45+
deleted = "🗑️ ×${count}"
46+
style = "bright-white"
47+
format = "$all_status$ahead_behind"
48+
49+
[hostname]
50+
ssh_only = false
51+
format = "<[$hostname]($style)>"
52+
trim_at = "-"
53+
style = "bold dimmed white"
54+
disabled = true
55+
56+
[julia]
57+
format = "[$symbol$version]($style) "
58+
symbol = ""
59+
style = "bold green"
60+
61+
[memory_usage]
62+
format = "$symbol[${ram}( | ${swap})]($style) "
63+
threshold = 70
64+
style = "bold dimmed white"
65+
disabled = false
66+
67+
[package]
68+
disabled = true
69+
70+
[python]
71+
format = "[$symbol$version]($style) "
72+
style = "bold green"
73+
74+
[rust]
75+
format = "[$symbol$version]($style) "
76+
style = "bold green"
77+
78+
[time]
79+
time_format = "%T"
80+
format = "🕙 $time($style) "
81+
style = "bright-white"
82+
disabled = false
83+
84+
[username]
85+
style_user = "bold dimmed blue"
86+
show_always = false
87+
88+
[nodejs]
89+
format = "via [🤖 $version](bold green) "
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
#format = """
2+
#[╭─user───❯](bold blue) $username
3+
#[┣─system─❯](bold yellow) $hostname
4+
#[┣─project❯](bold red) $directory$rust$git_branch$git_status$package$golang$terraform$docker_context$python$docker_context$nodejs
5+
#[╰─cmd────❯](bold green)
6+
#"""
7+
[username]
8+
style_user = "green bold"
9+
style_root = "red bold"
10+
format = "[$user]($style) "
11+
disabled = false
12+
show_always = true
13+
14+
[hostname]
15+
ssh_only = false
16+
format = 'on [MacBook-Pro-14](bold yellow) '
17+
trim_at = "."
18+
disabled = false
19+
20+
# Replace the "❯" symbol in the prompt with "➜"
21+
[character] # The name of the module we are configuring is "character"
22+
success_symbol = "[﬌](bold green)" # The "success_symbol" segment is being set to "➜" with the color "bold green"
23+
error_symbol = "[✗](bold red)"
24+
#  
25+
# configure directory
26+
[directory]
27+
read_only = ""
28+
truncation_length = 10
29+
truncate_to_repo = true # truncates directory to root folder if in github repo
30+
style = "bold italic blue"
31+
32+
[cmd_duration]
33+
min_time = 4
34+
show_milliseconds = false
35+
disabled = false
36+
style = "bold italic red"
37+
38+
[aws]
39+
symbol = ""
40+
41+
[conda]
42+
symbol = ""
43+
44+
[dart]
45+
symbol = ""
46+
47+
#[directory]
48+
#read_only = " "
49+
50+
[docker_context]
51+
symbol = ""
52+
format = "via [$symbol$context]($style) "
53+
style = "blue bold"
54+
only_with_files = true
55+
detect_files = ["docker-compose.yml", "docker-compose.yaml", "Dockerfile"]
56+
detect_folders = []
57+
disabled = false
58+
59+
[elixir]
60+
symbol = ""
61+
62+
[elm]
63+
symbol = ""
64+
65+
[git_branch]
66+
symbol = ""
67+
68+
[golang]
69+
symbol = ""
70+
71+
[hg_branch]
72+
symbol = ""
73+
74+
[java]
75+
symbol = ""
76+
77+
[julia]
78+
symbol = ""
79+
80+
[memory_usage]
81+
symbol = ""
82+
83+
[nim]
84+
symbol = ""
85+
86+
[nix_shell]
87+
symbol = ""
88+
89+
[package]
90+
symbol = ""
91+
92+
[perl]
93+
symbol = ""
94+
95+
[php]
96+
symbol = ""
97+
98+
[python]
99+
symbol = ""
100+
#pyenv_version_name = true
101+
format = 'via [${symbol}python (${version} )(\($virtualenv\) )]($style)'
102+
style = "bold yellow"
103+
pyenv_prefix = "venv "
104+
python_binary = ["./venv/bin/python", "python", "python3", "python2"]
105+
detect_extensions = ["py"]
106+
version_format = "v${raw}"
107+
108+
[ruby]
109+
symbol = ""
110+
111+
[rust]
112+
symbol = ""
113+
114+
[scala]
115+
symbol = ""
116+
117+
[shlvl]
118+
symbol = ""
119+
120+
[swift]
121+
symbol = ""
122+
123+
[nodejs]
124+
format = "via [ Node.js $version](bold green) "
125+
detect_files = ["package.json", ".node-version"]
126+
detect_folders = ["node_modules"]
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
format = """
2+
$username\
3+
$hostname\
4+
$directory\
5+
$git_branch\
6+
$git_state\
7+
$git_status\
8+
$git_metrics\
9+
$fill\
10+
$nodejs\
11+
$cmd_duration $jobs $time\
12+
$line_break\
13+
$character"""
14+
15+
[nodejs]
16+
format = "[$symbol($version )]($style)"
17+
18+
[fill]
19+
symbol = " "
20+
21+
[directory]
22+
style = "blue"
23+
read_only = ""
24+
truncation_length = 4
25+
truncate_to_repo = false
26+
27+
[character]
28+
success_symbol = "[❯](purple)"
29+
error_symbol = "[❯](red)"
30+
vicmd_symbol = "[❮](green)"
31+
32+
[git_branch]
33+
symbol = ""
34+
format = "[$symbol$branch]($style) "
35+
style = "bright-black"
36+
37+
[jobs]
38+
symbol = ""
39+
style = "bold red"
40+
number_threshold = 1
41+
format = "[$symbol]($style)"
42+
43+
[git_status]
44+
format = '([\[$all_status$ahead_behind\]]($style) )'
45+
style = "cyan"
46+
47+
[git_state]
48+
format = '\([$state( $progress_current/$progress_total)]($style)\) '
49+
style = "bright-black"
50+
51+
[git_metrics]
52+
disabled = false
53+
54+
[cmd_duration]
55+
format = "[$duration]($style)"
56+
style = "yellow"
57+
58+
[memory_usage]
59+
symbol = ""
60+
61+
[rust]
62+
symbol = ""
63+
64+
[time]
65+
disabled = false
66+
style = "bold white"
67+
format = "[$time]($style)"
68+
69+
[custom.stunnel]
70+
when = "ps aux | grep stunnel | grep -v grep"
71+
command = "ps -o etime= -p $(ps aux | grep stunnel | grep -v grep | awk '{print $2}')"
72+
style = "red"
73+
format = "[TUNNEL OPEN for $output]($style)"
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
format = """
2+
$status\
3+
$jobs\
4+
$cmd_duration\
5+
\t\t\
6+
$username\
7+
$hostname\
8+
$directory\
9+
\t\t\
10+
$git_branch\
11+
$git_commit\
12+
$git_state\
13+
$git_status\
14+
$memory_usage\
15+
$env_var\
16+
$line_break\
17+
$battery\
18+
$character"""
19+
20+
# prompt character
21+
[character]
22+
success_symbol = "[█](bold green)"
23+
error_symbol = "[█](bold red)"
24+
25+
# battery warning
26+
[[battery.display]]
27+
threshold = 10
28+
style = "bold red"
29+
30+
[[battery.display]]
31+
threshold = 30
32+
style = "bold yellow"
33+
34+
[[battery.display]]
35+
threshold = 50
36+
style = "bold green"
37+
38+
# timer
39+
[cmd_duration]
40+
min_time = 0
41+
show_milliseconds = true
42+
43+
[perl]
44+
disabled = true
45+
46+
[directory]
47+
truncation_symbol = "…/"
48+
49+
[status]
50+
disabled = false
51+
symbol = ""
52+
success_symbol = " ✔️ "
53+
not_executable_symbol = " 🚫 "
54+
not_found_symbol = " 🔍"
55+
sigint_symbol = ""
56+
signal_symbol = ""
57+
map_symbol = true
58+
pipestatus = true
59+
60+
61+
62+
[custom.prolog]
63+
command = "swipl --version | cut -d' ' -f3"
64+
extensions = ["pl"]
65+
format = "via [ v$output ](bold blue)"
66+
67+
[custom.tex]
68+
command = "tex --version | head -n1 | cut -d' ' -f2"
69+
extensions = ["tex"]
70+
format = "via [烈](cyan)[v$output ](bold blue)"
71+

0 commit comments

Comments
 (0)