-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.shell_functions.sh
More file actions
45 lines (39 loc) · 911 Bytes
/
.shell_functions.sh
File metadata and controls
45 lines (39 loc) · 911 Bytes
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
PATH=${PATH}:/usr/local/bin:$HOME/.script/:/opt/ollama/
function qtilepip() {
sudo /opt/qtile/venv/bin/pip3 "${1}" "${2}";
}
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
alert_timed() {
time `sleep ${1} && notify-send "${2}"` &
}
fonts_list() {
fc-list \
| grep -ioE ": [^:]*$1[^:]+:" \
| sed -E 's/(^: |:)//g' \
| tr , \\n \
| sort \
| uniq
}
awsp() {
if [ -z "${1}" ]; then
echo "Setting profile to 'rfideas-dev'"
export AWS_PROFILE="rfideas-dev"
else {
echo "Setting profile to '${1}'"
export AWS_PROFILE="${1}"
}
fi
}
awsr() {
if [ -z "${1}" ]; then
echo "Setting region to 'us-west-2'"
export AWS_REGION="us-west-2"
return;
else {
echo "Setting region to '${1}'"
export AWS_REGION="${1}"
}
fi
}