diff --git a/lib/aliases/configuration/configuration.aliases.sh b/lib/aliases/configuration/configuration.aliases.sh index efcf5023..6566e6c0 100644 --- a/lib/aliases/configuration/configuration.aliases.sh +++ b/lib/aliases/configuration/configuration.aliases.sh @@ -1,47 +1,73 @@ #!/usr/bin/env bash -# πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.468) - -# 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"