new ways 2
This commit is contained in:
8
bin/actions/export.sh
Executable file
8
bin/actions/export.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
source ~/dotfiles/bin/helpers/functions.sh
|
||||
|
||||
printfe "%s\n" "cyan" "Exporting Gnome Terminal preferences"
|
||||
dconf dump /org/gnome/terminal/ > ~/dotfiles/config/gterminal.preferences
|
||||
|
||||
printfe "%s\n" "green" "Finished, don't forget to commit and push"
|
13
bin/actions/help.sh
Executable file
13
bin/actions/help.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source ~/dotfiles/bin/helpers/functions.sh
|
||||
|
||||
# Print logo
|
||||
tput setaf 2
|
||||
cat ~/dotfiles/bin/resources/logo.txt
|
||||
println " " "cyan"
|
||||
tput sgr0
|
||||
|
||||
# Print help
|
||||
cat ~/dotfiles/bin/resources/help.txt
|
||||
println " " "cyan"
|
25
bin/actions/update.sh
Executable file
25
bin/actions/update.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
source ~/dotfiles/bin/helpers/functions.sh
|
||||
|
||||
printfe "%s\n" "cyan" "Pulling latest changes..."
|
||||
git -C ~/dotfiles pull
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
printfe "%s\n" "red" "Failed to pull latest changes"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
printfe "%s\n" "cyan" "Updating symlinks..."
|
||||
check_or_make_symlink ~/.zshrc ~/dotfiles/zshrc
|
||||
check_or_make_symlink ~/.config/Code/User/settings.json ~/dotfiles/vscode/settings.json
|
||||
check_or_make_symlink ~/.config/starship.toml ~/dotfiles/config/starship.toml
|
||||
|
||||
printfe "%s\n" "cyan" "Ensuring packages are installed..."
|
||||
source ~/dotfiles/bin/helpers/packages.sh
|
||||
ensure_packages_installed
|
||||
|
||||
printfe "%s\n" "cyan" "Importing Gnome Terminal preferences..."
|
||||
cat ~/dotfiles/config/gterminal.preferences | dconf load /org/gnome/terminal/legacy/profiles:/
|
||||
|
||||
printfe "%s\n" "green" "Finished, don't forget restart your terminal"
|
Reference in New Issue
Block a user