This file contains hidden or 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
function tab | |
set -l ascmd "osascript -e 'tell application \"Terminal\" to activate' -e 'tell application \"System Events\" to tell process \"Terminal\" to keystroke \"t\" using command down'" | |
for arg in $argv | |
set ascmd "$ascmd -e 'tell application \"Terminal\" to do script \"$arg\" in selected tab of the front window'" | |
end | |
set -l ascmd "$ascmd;" | |
eval $ascmd | |
end |
This file contains hidden or 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
function fs_runscript -e directory_changed | |
if test -f "./.fs_script" | |
eval ("./.fs_script") | |
end | |
if test -f "./.fs_cmd" | |
# read file and run contents | |
set -l fs_cmd (cat ./.fs_cmd) | |
eval $fs_cmd | |
end | |
end |
This file contains hidden or 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
set -xg FS_CURRENT_DIR "" | |
function fs_change_directory -e fish_prompt | |
set -l this_dir (PWD) | |
if [ $this_dir != $FS_CURRENT_DIR ] | |
set -xg FS_CURRENT_DIR (pwd) | |
emit directory_changed | |
end | |
end |
This file contains hidden or 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
#!/bin/bash | |
echo "Merging the develop branch with the master branch and pushing to the remote repository..." | |
git checkout master | |
git fetch origin master | |
git merge --no-ff develop | |
git push origin master | |
git checkout develop | |
git fetch origin develop |