Skip to content

Commit f7b2a43

Browse files
shellrc: added disk plugin
1 parent a8313cb commit f7b2a43

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

.oh-my-shell/oh-my-shellrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ dot_plugin_if_exists "cron"
6767
dot_plugin_if_exists "date"
6868
dot_plugin_if_exists "development"
6969
dot_plugin_if_exists "debugging_shell_scripts"
70+
dot_plugin_if_exists "disk"
7071
dot_plugin_if_exists "diff"
7172
dot_plugin_if_exists "docker"
7273
dot_plugin_if_exists "download"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
if command_exists 'dua'; then
2+
# Disk usage analyzer
3+
# Usage: tdisk_usage_analyzer /path/fo/folder
4+
alias tdisk_usage_analyzer='dua i '
5+
elif command_exists 'ncdu'; then
6+
alias tdisk_usage_analyzer='ncdu '
7+
fi
8+

.oh-my-shell/shellrc/plugins/file_directory/aliases.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,3 @@ alias edit='f_file_directory_create_missing_dirs_file 0 '
1414
# usage: find_broken_symbolic_link /path/to/some/folder
1515
alias find_broken_symbolic_link='find -L -xtype l'
1616

17-
# Disk usage analyzer
18-
# usage: tdiskusage /path/to/some/folder
19-
alias tdiskusage='dua interactive '

0 commit comments

Comments
 (0)