Skip to content

Commit

Permalink
feat: rename aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
pmqueiroz committed Aug 4, 2024
1 parent 5237a40 commit ee8808a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion dots/sources.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source $HOME/.dotfilesrc
source $HOME/dots-aliases.sh

eval "$(zoxide init bash)"
shopt -s autocd;
Expand Down
12 changes: 6 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
shopt -s expand_aliases
source .dotfilesrc
source dots/aliases.sh

if ! command -v brew &> /dev/null; then
echo "[FATAL] brew is not installed. Please install Homebrew first."
Expand Down Expand Up @@ -108,17 +108,17 @@ if [[ ! -d "tmp" ]];then
mkdir ./tmp
fi

if [ ! -f $HOME/.dotfilesrc ]; then
gum_log info "file $HOME/.dotfilesrc does not exits. creating"
if [ ! -f $HOME/dots-aliases.sh ]; then
gum_log info "file $HOME/dots-aliases.sh does not exits. creating"

if git rev-parse --git-dir > /dev/null 2>&1; then
cp ./.dotfilesrc ./tmp/.dotfilesrc
cp ./dots/aliases.sh ./tmp/dots-aliases.sh
else
gum_log info "fetching dotfiles-commands"
curl -o ./tmp/.dotfilesrc https://raw.githubusercontent.com/pmqueiroz/dotfiles/master/.dotfilesrc
curl -o ./tmp/dots-aliases.sh https://raw.githubusercontent.com/pmqueiroz/dotfiles/master/dots/aliases.sh
fi

sudo cp ./tmp/.dotfilesrc $HOME/.dotfilesrc
sudo cp ./tmp/dots-aliases.sh $HOME/dots-aliases.sh
fi

SOURCE_START_PATTERN="# ---BEGIN DOTFILES SOURCE---"
Expand Down

0 comments on commit ee8808a

Please sign in to comment.