global/zsh: fix mktmp function
This commit is contained in:
parent
6d48d41d33
commit
3137404199
1 changed files with 5 additions and 4 deletions
|
@ -45,6 +45,7 @@
|
||||||
alias "jh"="cd ~ && j"
|
alias "jh"="cd ~ && j"
|
||||||
alias "gj"="gcd && j"
|
alias "gj"="gcd && j"
|
||||||
|
|
||||||
|
unalias mktmp
|
||||||
mktmp() {
|
mktmp() {
|
||||||
if [ "$1" != "" ]; then
|
if [ "$1" != "" ]; then
|
||||||
dirspec="$1.XXX"
|
dirspec="$1.XXX"
|
||||||
|
@ -124,10 +125,10 @@
|
||||||
|
|
||||||
history.path = "$HOME/${dotDir}/.zsh_history";
|
history.path = "$HOME/${dotDir}/.zsh_history";
|
||||||
|
|
||||||
shellAliases = main.environment.shellAliases // config.home.shellAliases // {
|
shellAliases = builtins.removeAttrs
|
||||||
|
(main.environment.shellAliases // config.home.shellAliases // {
|
||||||
lsdiskw = "while true; do clear; lsdisk; sleep 1; done";
|
lsdiskw = "while true; do clear; lsdisk; sleep 1; done";
|
||||||
mktmp = "mktmp"; # Remove global alias
|
}) [ "mktmp" ];
|
||||||
};
|
|
||||||
|
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue