-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy_add_aliases
More file actions
executable file
·36 lines (29 loc) · 1020 Bytes
/
my_add_aliases
File metadata and controls
executable file
·36 lines (29 loc) · 1020 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
#!/bin/bash
# Add aliases to .bash_profile
# Help message
if [[ $1 = "-h" ]] || [[ $1 = "--help" ]]
then
echo "
$(basename "$0") [-h] (name)
-- script to add aliases to .bash_profile
where:
-h (--help) show help text
"
exit 0;
fi
# Path to .bash_profile
bp_path=~/.bash_profile
echo "
alias ls=my_ls # ls override
alias mkdir=my_mkdir # mkdir override
alias newscript=my_new_script # Bash script template
alias scripts=my_ls_scripts # List scripts
alias trash=my_mv_file_to_trash # Move file to trash
alias note=my_take_note # Add a note
alias show_notes=my_show_notes # Show all notes in notes.txt
alias capi=dotnet_create_api # Build new dotnet api
alias qod=my_quote_of_the_day # Fetch a new quote everyday
alias findcolor=my_find_color # Open Adobe color in browser
" >> $bp_path
# User output
echo "Script aliases add to $bp_path"