-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dotfiles): 🎨 Organize configuration aliases script
Grouped aliases into sections for clarity Sorted files alphabetically within each section Added blank lines between groups to improve readability Ensured consistency in formatting and commenting Improved script structure and organization
- Loading branch information
1 parent
0cd7105
commit 59d1cf4
Showing
1 changed file
with
55 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,73 @@ | ||
#!/usr/bin/env bash | ||
|
||
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.468) - <https://dotfiles.io> | ||
# Made with ♥ in London, UK by @wwdseb | ||
# Copyright (c) 2015-2024. All rights reserved | ||
# License: MIT | ||
################################################################################ | ||
# 🅳🅾🆃🅵🅸🅻🅴🆂 | ||
# Script: configuration.aliases.sh | ||
# Version: 0.2.468 | ||
# Author: @wwdseb | ||
# Copyright (c) 2015-2024. All rights reserved | ||
# Description: Script containing aliases to open configuration files in default | ||
# editor | ||
# Website: https://dotfiles.io | ||
# License: MIT | ||
################################################################################ | ||
|
||
# Set default text editor | ||
EDITOR="${EDITOR:-vi}" | ||
|
||
# Apache aliases | ||
# ------------------------------------------------------------------------------ | ||
|
||
# Open Apache configuration file in default text editor | ||
alias edit_apache_config='${EDITOR} /etc/apache2/apache2.conf' | ||
|
||
# Bash aliases | ||
# ------------------------------------------------------------------------------ | ||
|
||
# Open Bash configuration file in default text editor | ||
alias edit_bashrc='${EDITOR} $HOME/.bashrc' | ||
|
||
# Open Bash profile in default text editor | ||
alias edit_bash_profile='${EDITOR} $HOME/.bash_profile' | ||
|
||
# Docker aliases | ||
# ------------------------------------------------------------------------------ | ||
|
||
# 🅲🅾🅽🅵🅸🅶🆄🆁🅰🆃🅸🅾🅽 🅰🅻🅸🅰🆂🅴🆂 | ||
# Open Docker Compose file in default text editor | ||
alias edit_docker_compose='${EDITOR} docker-compose.yml' | ||
|
||
# Alias to open the Apache configuration file in the default text editor | ||
alias apconf='${=EDITOR} /etc/apache2/apache2.conf' | ||
# General aliases | ||
# ------------------------------------------------------------------------------ | ||
|
||
# Alias to open the Bash configuration file in the default text editor | ||
alias bshrc='${=EDITOR} $HOME/.bashrc' | ||
# Open current directory in default text editor | ||
alias edit_current_directory='${EDITOR} .' | ||
|
||
# Alias to open the Bash profile in the default text editor | ||
alias bshp='${=EDITOR} $HOME/.bash_profile' | ||
# Git aliases | ||
# ------------------------------------------------------------------------------ | ||
|
||
# Alias to open the Docker Compose file in the default text editor | ||
alias dockcomp='${=EDITOR} docker-compose.yml' | ||
# Open Git configuration file in default text editor | ||
alias edit_git_config='${EDITOR} $HOME/.gitconfig' | ||
|
||
# Alias to open the current directory in the default text editor | ||
alias eddir='${=EDITOR} .' | ||
# Open Git ignore file in default text editor | ||
alias edit_git_ignore='${EDITOR} $HOME/.gitignore' | ||
|
||
# Alias to open the Git configuration file in the default text editor | ||
alias gcfg='${=EDITOR} $HOME/.gitconfig' | ||
# System config aliases | ||
# ------------------------------------------------------------------------------ | ||
|
||
# Alias to open the Git ignore file in the default text editor | ||
alias gign='${=EDITOR} $HOME/.gitignore' | ||
# Open hosts file in default text editor | ||
alias edit_hosts='${EDITOR} /etc/hosts' | ||
|
||
# Alias to open the hosts file in the default text editor | ||
alias hosts='${=EDITOR} /etc/hosts' | ||
# Open Nginx configuration file in default text editor | ||
alias edit_nginx_config='${EDITOR} /etc/nginx/nginx.conf' | ||
|
||
# Alias to open the Nginx configuration file in the default text editor | ||
alias ngconf='${=EDITOR} /etc/nginx/nginx.conf' | ||
# Open SSH configuration file in default text editor | ||
alias edit_ssh_config='${EDITOR} $HOME/.ssh/config' | ||
|
||
# Alias to open the SSH configuration file in the default text editor | ||
alias sshconf='${=EDITOR} $HOME/.ssh/config' | ||
# Open Zsh configuration file in default text editor | ||
alias edit_zshrc='${EDITOR} $HOME/.zshrc' | ||
|
||
# Alias to open the Zsh configuration file in the default text editor | ||
alias zshrc='${=EDITOR} $HOME/.zshrc' | ||
# Open Zsh profile in default text editor | ||
alias edit_zsh_profile='${EDITOR} $HOME/.zsh_profile' | ||
|
||
# Alias to open the Zsh profile in the default text editor | ||
alias zshp='${=EDITOR} $HOME/.zsh_profile' | ||
# Add blank lines between groups | ||
echo -e "\n\n" |