moved bash scripts from 'collections' to {repo}/misc/scripts/
adjusted bashrc accordingly
This commit is contained in:
@@ -28,6 +28,7 @@ alias dirs='dirs -v'
|
|||||||
alias bashsource='source ~/.bashrc'
|
alias bashsource='source ~/.bashrc'
|
||||||
|
|
||||||
## short forms for tmux commands
|
## short forms for tmux commands
|
||||||
|
alias tma='tmux attach'
|
||||||
alias trs='tmux rename-session'
|
alias trs='tmux rename-session'
|
||||||
alias trw='tmux rename-window'
|
alias trw='tmux rename-window'
|
||||||
alias tnw='tmux new-window -c "#{pane_current_path}"'
|
alias tnw='tmux new-window -c "#{pane_current_path}"'
|
||||||
@@ -49,8 +50,9 @@ eval "$(starship init bash)"
|
|||||||
# source /home/scbj/repos/qmk_firmware/util/qmk_tab_complete.sh
|
# source /home/scbj/repos/qmk_firmware/util/qmk_tab_complete.sh
|
||||||
|
|
||||||
# custom functions for specific purposes
|
# custom functions for specific purposes
|
||||||
source ~/collection/commands/colors.sh
|
script_path=~/dotfiles/misc/scripts/
|
||||||
source ~/collection/commands/dunst.sh
|
source "${script_path}"/colors.sh
|
||||||
|
source "${script_path}"/dunst.sh
|
||||||
|
|
||||||
# source alias file
|
# source alias file
|
||||||
source ~/.bash_alias
|
source ~/.bash_alias
|
||||||
|
|||||||
@@ -37,5 +37,6 @@
|
|||||||
"cortex-debug.gdbPath": "/usr/bin/arm-none-eabi-gdb",
|
"cortex-debug.gdbPath": "/usr/bin/arm-none-eabi-gdb",
|
||||||
"cortex-debug.JLinkGDBServerPath": "/home/scbj/repos/jlink_linux/JLinkGDBServer",
|
"cortex-debug.JLinkGDBServerPath": "/home/scbj/repos/jlink_linux/JLinkGDBServer",
|
||||||
"pdf-preview.default.sidebar": true,
|
"pdf-preview.default.sidebar": true,
|
||||||
"workbench.tree.indent": 20
|
"workbench.tree.indent": 20,
|
||||||
|
"cortex-debug.enableTelemetry": false
|
||||||
}
|
}
|
||||||
5
misc/scripts/colors.sh
Normal file
5
misc/scripts/colors.sh
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
show256colors () {
|
||||||
|
for code in {0..255}; do
|
||||||
|
echo -e "\e[38;05;${code}m $code: Color";
|
||||||
|
done
|
||||||
|
}
|
||||||
15
misc/scripts/dunst.sh
Normal file
15
misc/scripts/dunst.sh
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# reset dunst and send notification to Test dUNST config
|
||||||
|
tunst() {
|
||||||
|
killall -9 dunst
|
||||||
|
|
||||||
|
if [[ -z $1 ]]; then
|
||||||
|
notify-send "Henlo" "fren of fren of very fren";
|
||||||
|
else
|
||||||
|
for n in $(seq 1 $1); do
|
||||||
|
notify-send "Henlo(${n})" "fren of fren of fren number ${n}";
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user