-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
138 lines (110 loc) · 5.68 KB
/
Copy path.bashrc
File metadata and controls
138 lines (110 loc) · 5.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[[ $- == *i* ]] && source /usr/share/blesh/ble.sh --noattach
# Enable the subsequent settings only in interactive sessions
case $- in
*i*) ;;
*) return;;
esac
# Path to your oh-my-bash installation.
export OSH="$HOME/.oh-my-bash"
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-bash is loaded.
OSH_THEME="agnoster"
# Uncomment the following line to use case-sensitive completion.
# OMB_CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# OMB_HYPHEN_SENSITIVE="false"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_OSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you don't want the repository to be considered dirty
# if there are untracked files.
# SCM_GIT_DISABLE_UNTRACKED_DIRTY="true"
# Uncomment the following line if you want to completely ignore the presence
# of untracked files in the repository.
# SCM_GIT_IGNORE_UNTRACKED="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output. One of the following values can
# be used to specify the timestamp format.
# * 'mm/dd/yyyy' # mm/dd/yyyy + time
# * 'dd.mm.yyyy' # dd.mm.yyyy + time
# * 'yyyy-mm-dd' # yyyy-mm-dd + time
# * '[mm/dd/yyyy]' # [mm/dd/yyyy] + [time] with colors
# * '[dd.mm.yyyy]' # [dd.mm.yyyy] + [time] with colors
# * '[yyyy-mm-dd]' # [yyyy-mm-dd] + [time] with colors
# If not set, the default value is 'yyyy-mm-dd'.
# HIST_STAMPS='yyyy-mm-dd'
# Uncomment the following line if you do not want OMB to overwrite the existing
# aliases by the default OMB aliases defined in lib/*.sh
# OMB_DEFAULT_ALIASES="check"
# Would you like to use another custom folder than $OSH/custom?
# OSH_CUSTOM=/path/to/new-custom-folder
# To disable the uses of "sudo" by oh-my-bash, please set "false" to
# this variable. The default behavior for the empty value is "true".
OMB_USE_SUDO=true
# To enable/disable display of Python virtualenv and condaenv
# OMB_PROMPT_SHOW_PYTHON_VENV=true # enable
# OMB_PROMPT_SHOW_PYTHON_VENV=false # disable
# To enable/disable Spack environment information
# OMB_PROMPT_SHOW_SPACK_ENV=true # enable
# OMB_PROMPT_SHOW_SPACK_ENV=false # disable
# Which completions would you like to load? (completions can be found in ~/.oh-my-bash/completions/*)
# Custom completions may be added to ~/.oh-my-bash/custom/completions/
# Example format: completions=(ssh git bundler gem pip pip3)
# Add wisely, as too many completions slow down shell startup.
completions=(
git
composer
ssh
)
# Which aliases would you like to load? (aliases can be found in ~/.oh-my-bash/aliases/*)
# Custom aliases may be added to ~/.oh-my-bash/custom/aliases/
# Example format: aliases=(vagrant composer git-avh)
# Add wisely, as too many aliases slow down shell startup.
aliases=(
general
)
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-bash/plugins/*)
# Custom plugins may be added to ~/.oh-my-bash/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
bashmarks
)
source "$OSH"/oh-my-bash.sh
# -- Eigene Aliases --
alias ls='eza --icons --git --group-directories-first'
alias ll='eza -l --icons --git --group-directories-first'
alias la='eza -la --icons --git --group-directories-first'
alias update='yay'
# Personal remote-access aliases — replace the placeholders with your own hosts:
alias bx='ssh -t <ssh-host-alias> "screen -xARR"'
alias myserver='ssh <user>@<your-server>'
alias connect='vncviewer -QualityLevel 9 -CompressLevel 0 -PreferredEncoding Raw <vnc-host>:5900'
# -- Fan Control (blade-helper) --
# Note: blade-helper set perf resets SMU power limits, so re-apply ryzenadj sweetspot after each perf change
_ryzenadj_sweetspot() { for i in 1 2 3 5 8; do sleep $i && sudo ryzenadj --stapm-limit=55000 --fast-limit=66000 --slow-limit=55000 --tctl-temp=90 >/dev/null 2>&1; done; }
_ryzenadj_eco() { for i in 1 2 3 5 8; do sleep $i && sudo ryzenadj --stapm-limit=45000 --fast-limit=55000 --slow-limit=45000 --tctl-temp=45 >/dev/null 2>&1; done; }
_ryzenadj_cooldown() { for i in 1 2 3 5 8; do sleep $i && sudo ryzenadj --stapm-limit=45000 --fast-limit=55000 --slow-limit=45000 --tctl-temp=40 >/dev/null 2>&1; done; }
overdrive() { sudo blade-helper set perf performance && _ryzenadj_sweetspot; }
cooldown() { sudo blade-helper set perf balanced && sudo blade-helper set fan manual 5000 && _ryzenadj_cooldown; }
eco() { sudo blade-helper set perf silent && _ryzenadj_eco; }
fanstatus() { sudo blade-helper status; }
# -- Ryzenadj Sweetspot --
sweetspot() { sudo python3 -c "import struct; d=open('/sys/kernel/ryzen_smu_drv/pm_table','rb').read(); t=struct.unpack('<6f',d[:24]); print(f'STAPM: {t[0]:.0f}W Fast: {t[2]:.0f}W Slow: {t[4]:.0f}W')"; }
# -- BLE.sh (Attach - muss ganz unten stehen) --
[[ ${BLE_VERSION-} ]] && ble-attach