Commit Graph

24 Commits

Author SHA1 Message Date
druckdev
6eac13011a zsh: Add named directory for work 2020-11-02 02:03:22 +01:00
druckdev
ef13b24e80 zsh:alias: Update named directories
Update named directories location and rewrite the hash for wise and sose
to use a solution without tail but only the zsh glob power.
TODO: Find solution to get rid of the `echo` as well.
2020-10-31 22:34:13 +01:00
druckdev
d1869afff6 zsh:alias,functions: Add lowres, crypt-{,u}mount 2020-10-26 13:46:25 +01:00
druckdev
1b382f4f85 zsh:alias: Do not use aliases dictionary
Just use the command name instead of trying to directly expand
previously defined aliases for the command. Nested aliases still work
like this and using the dictionary breaks some stuff like
syntax-highlighting.

Put xxd into quotes just to be consistent.
2020-10-25 02:20:18 +02:00
druckdev
fbdf7252ec zsh:alias: Remove trash-restore alias
trash renamed the command. The alias is now useless/breaks stuff since
restore-trash does not exist anymore.
2020-10-25 02:12:14 +02:00
druckdev
0424941699 zsh: Rename autoloadable function ls
Rename to avoid confusion and make the config more transparent.
2020-10-06 03:54:01 +02:00
druckdev
5ca84d8ec9 zsh:alias: Quote nested aliases with single quotes
Use single quotes for nested aliases so that the alias is only then
expanded when the command is used. By that we ensure that the order of
the aliases in alias.zsh is irrelevant.
2020-10-05 21:31:52 +02:00
druckdev
4cb445c2b5 shell-scripts: Use [[ instead of [ where possible
Replace all occurrences of [ with [[ in bash and zsh scripts and
configs.
Performance wise it makes sense to use the builtin instead of calling an
external command also when from a functionality stand point `test` would
suffice.
2020-10-03 01:29:29 +02:00
druckdev
51797397f6 zsh: Convert all oneline functions into aliases
Convert all functions that are pretty much oneliners and do not contain
any real logic into aliases by using anonymous functions.
I am not too sure if I will keep it this way.
2020-09-28 04:07:56 +02:00
druckdev
0cff51f17d zsh: Add alias for listing zsh options + values 2020-09-28 02:14:22 +02:00
druckdev
285863cb4f zsh:alias: Refactor
Reorder categories.
Remove unused aliases and PATH modification.
Refactor to keep lines under the maximum of 80 columns.
Use brace expansion where an alias has different names.
Simplify method for finding the wise and sose hash.
2020-09-28 02:06:08 +02:00
druckdev
9ae3de7d64 zsh: Add git alias for commiting with last message 2020-09-27 18:36:35 +02:00
druckdev
d7fc680abe zsh: Refactor functions
Combine functions{Pre,Post}.zsh into functions.zsh. There is no reason
or sense in splitting the functions like that and differentiating
between functions that should be loaded before and after sourcing the
aliases.

Rename the functions from funcPre, making their aliases superfluous.
2020-09-25 01:26:17 +02:00
druckdev
11ec8b93fb zsh: Heavy improvements to ls_show_hidden
Autoload the function instead of declaring it directly.
Add functionality for multiple targets. It should now pretty much
perform like `command ls`.
Refactored code to use more zsh extensions like globbing instead of
parsing the output of `ls` making it a lot faster.
2020-09-25 01:09:59 +02:00
druckdev
c00d8df9d0 zsh: Update dotfile hash 2020-09-24 03:45:46 +02:00
druckdev
9151969cab Remove -m flag from git commit alias
Meanwhile I am often writing longer commit messages instead of oneliner.
2020-09-13 04:48:23 +02:00
druckdev
91080dd6d6 Improve glog alias by creating a function for it
Improve glog alias by creating a function for it that uses fzf to
directly preview the full commit using git-show. The function also
allows to select one of the commits and putting its abbreviated commit
hash into the clipboard.
2020-08-28 02:33:38 +02:00
druckdev
c1315bd693 Fix name clashing
Fix name clashing of batter alias with bat the cat replacement
2020-08-20 00:20:21 +02:00
druckdev
be3e217231 Check for certain commands before using
Check for existence of certain commands like nvim before using them in
aliases or env vars like EDITOR.
2020-08-04 04:49:30 +02:00
druckdev
066d8e9f0e Make adding to PATH safer 2020-08-04 04:39:00 +02:00
druckdev
a9955af675 Add git log alias
Add alias that displays git log in a colored graph
2020-07-31 16:36:17 +02:00
druckdev
da474b7899 Whitespace changes
Delete unnecessary indentation and convert all spaces to tabs.
2020-06-30 04:10:47 +02:00
druckdev
b3ad3a48c5 Add aliases
Add hint if reboot is necessary after updating.
Add alias to grep a date string.
Always scale images opened with feh to fit the window.
Add alias to open a "temporary" shell in alternate mode that does not
mess with the scrollback history.
2020-06-25 23:52:03 +02:00
druckdev
0c743950ac Initial commit 2020-04-23 14:50:36 +02:00