-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
51 additions
and
0 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,3 +1,17 @@ | ||
INSTALL=/usr/bin | ||
open-directory-install: | ||
sudo cp open-directory ${INSTALL}/open-directory | ||
sudo cp open-directory.desktop /usr/local/share/applications/open-directory.desktop | ||
xdg-mime default open-directory.desktop inode/directory | ||
xdg-mime default open-directory.desktop application/x-directory | ||
sudo xdg-mime default open-directory.desktop inode/directory | ||
sudo xdg-mime default open-directory.desktop application/x-directory | ||
sudo update-desktop-database | ||
open-text-file-install: | ||
sudo cp open-text-file ${INSTALL}/open-text-file | ||
sudo cp open-text-file.desktop /usr/local/share/applications/open-text-file.desktop | ||
xdg-mime default open-text-file.desktop text/plain | ||
sudo xdg-mime default open-text-file.desktop text/plain | ||
update-desktop-database | ||
install: | ||
find -executable -type f | sudo xargs cp -t ${INSTALL} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
cd $1 | ||
exec xterm |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Install: | ||
# sudo cp open-directory /bin/open/directory | ||
# sudo cp open-directory.desktop /usr/local/share/applications/open-directory.desktop | ||
# xdg-mime default open-directory.desktop inode/directory | ||
# xdg-mime default open-directory.desktop application/x-directory | ||
# sudo update-desktop-database | ||
# Test current default: | ||
# xdg-mime query default inode/directory | ||
# Verify this file: | ||
# desktop-file-validate open-directory.desktop | ||
|
||
[Desktop Entry] | ||
Type=Application | ||
Name=open folder in terminal | ||
|
||
Exec=open-directory %f | ||
# Uncomment and modify if open-directory is NOT in the system path | ||
# Exec=xterm -e /home/zachary/.projects/short-programs/open-directory %f |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
if [ -z "${EDITOR}" ]; then | ||
for option in nano vim emacs vi less more; do | ||
if [ -e /bin/$option ]; then | ||
EDITOR=$option | ||
break | ||
fi | ||
done | ||
fi | ||
exec xterm -e $EDITOR "$@" |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[Desktop Entry] | ||
Type=Application | ||
Name=edit text file in terminal | ||
Exec=open-text-file %f | ||
# Uncomment and modify if open-file is NOT in the system path | ||
# Exec=/home/zachary/.projects/short-programs/open-text-file %f |