Commit graph

59 commits

Author SHA1 Message Date
ItsDrike abac53fa9f
Update comments 2021-12-18 18:10:04 +01:00
ItsDrike 826cef4e6e
POSIX compliance, shellcheck 2021-12-18 18:09:25 +01:00
ItsDrike d843e90462
Use spaces instead of tabs 2021-12-18 18:07:47 +01:00
ItsDrike b07404d669
Use POSIX-compatible sh, not zsh 2021-12-18 12:04:41 +01:00
ItsDrike 09ce7d00a9
Convert tabs to spaces 2021-12-18 12:04:28 +01:00
ItsDrike 752fd36c62
Fix pip aliases for cpython/pypy
- We can't simply define `pip3.6`,... because the aliases support both
  cpython and pypy version, which means these needs to differ. For that
  reason, I decided to use `ppip3` for pypy and `pip3` for cpython.
  However there's also an option to use the full version like this:
  `pypy3pip` or `py3.7pip`.
2021-12-18 11:49:37 +01:00
ItsDrike 5432334da6
Simplify python alias creation 2021-12-18 05:48:36 +01:00
ItsDrike 02237fd0b1
Don't re-run work_directory function
- Re-reunning work_directory every time we redraw the prompt isn't
  necessary, since the function is here to generate the zsh supported
  syntax for the prompt that will get expanded into a work directory
  automatically.
- The function is only here to determine whether we're in TTY and use
  ASCII compatible symbols if we are, however it is enough to only check
  this once initially, since we can't leave TTY in favor of a graphical
  instance without reloading the rc file and neither can we leave.
- However, this function also checks for `USE_SHORTENED_WORKDIR`
  variable and decides which prompt to show based on it. This means that
  it someone was setting this variable in their profile file it would
  now no longer be respected, however this was never the intention of
  that variable, if a change is desired, the variable should simply be
  edited in the prompt file directly.
- Removing continual calls to this function each time prompt is redrawn
  is worth the very minor inconvenience of no longer supporting
  shortened workdirs from externally set variable due to the speed
  benefit it gives us, though not that noticeable, it is pretty
  significant. Not to mention that this wasn't intended/recommended
  usage anyway.
2021-12-18 04:46:02 +01:00
ItsDrike d048c2a262
Also add ppy alias for default pyhton version 2021-12-18 03:21:23 +01:00
ItsDrike 754bbcbbd6
Also add ppy and ipy aliases
- py alias should always preferably use ipython, however if it isn't
  available, it does fall back to the pure python interpreter.
- This is useful for running scripts since we would prefer ipython error
  output, but also for debugging, etc.
- However since py will use ipython, we didn't have any good way to get
  back to pure python unless it's typed in it's full form, which is too
  long. Because of this, this adds `ppy` alias, which always points to
  the pure python interpreter, no matter if ipython is available or not.
- This also adds a more explicit `ipy` alias, to clearly mark that we
  want ipython.
2021-12-18 03:19:59 +01:00
ItsDrike 6f613a1ea5
Fix python aliases 2021-12-18 03:10:16 +01:00
ItsDrike c606650c7d
Add vimtutor alias for nvim 2021-12-18 03:02:39 +01:00
ItsDrike ac4b447bb5
Add aliases to quickly configure nvim 2021-12-18 03:02:26 +01:00
ItsDrike a0dfc5fd09
Add aliases for different python versions 2021-12-18 03:02:02 +01:00
ItsDrike bb0d435321
Add a note about dangers of using ↵ symbol 2021-12-15 22:09:43 +01:00
ItsDrike fd57706a2f
Minor fixes 2021-12-15 22:08:59 +01:00
ItsDrike 39a66f0e30
Hide errors if git status fails 2021-12-15 22:08:01 +01:00
ItsDrike 13c47143af
Add auth-log alias 2021-12-03 14:49:02 +01:00
ItsDrike b267b97c45
Add more git aliases 2021-12-01 19:58:56 +01:00
ItsDrike 8b4be51ca0
Merge branch 'arch' of https://github.com/ItsDrike/dotfiles into arch 2021-11-14 20:59:22 +01:00
ItsDrike 9166b4c051
Update directory aliases 2021-11-14 20:58:43 +01:00
ItsDrike 6d85a4bc40
Fix cftodo alias 2021-11-14 20:57:43 +01:00
ItsDrike 82f60713d4
Add vim-like exist aliases 2021-11-14 20:54:54 +01:00
ItsDrike 2446789d25
Add support for terminal window swallowing 2021-11-14 20:54:15 +01:00
ItsDrike 4bc99d46b5
Fix ip-show alias 2021-10-22 13:19:20 +02:00
ItsDrike e898743503
Add some further XDG env variables 2021-10-03 10:10:40 +02:00
ItsDrike cfe07183ee
Follow XDG base dir specs for nerdtree bookmarks 2021-10-03 10:10:13 +02:00
ItsDrike 59ea70aef4
Show datetime on xsecurelock 2021-08-20 20:11:41 +02:00
ItsDrike ee5e3a5fd1
Add cfxprofile aliase 2021-08-19 23:26:06 +02:00
ItsDrike ef45a89ca4
Don't display hostname on lockscreen 2021-08-19 02:09:44 +02:00
ItsDrike 182a68612f
Don't blindly run editable github gist with bash 2021-08-16 17:31:26 +02:00
ItsDrike 669ec40e9d
Add vimwiki alias 2021-08-16 00:37:04 +02:00
ItsDrike 05e63ef139
Change ld alias to ldir (avoid conflicts) 2021-08-15 15:23:22 +02:00
ItsDrike cf60ccb97e
Use lowercase A for $TERMINAL 2021-08-14 19:50:15 +02:00
ItsDrike 4f6e9f8127
Support milisecond precision 2021-08-13 14:04:20 +02:00
ItsDrike ac8f461bc8
Move command runtime to left prompt 2021-08-13 12:31:39 +02:00
ItsDrike 77b4308c13
Add option to show command runtime 2021-08-13 12:31:10 +02:00
ItsDrike 1fadd7f1b2
Fix terminal env var typo 2021-07-24 18:26:21 +02:00
ItsDrike a6ad237b7c
Remove cfvim alias, add gdc 2021-07-23 19:13:35 +02:00
ItsDrike c55163d4ae
Alias j to z (from autojump) 2021-07-22 21:12:35 +02:00
ItsDrike 84c15ef496
Move PATH extension to profile 2021-07-22 00:16:41 +02:00
ItsDrike 36fc25b4ee
Add z.lua aliases 2021-07-20 23:20:18 +02:00
ItsDrike 54742fcd93
Add kernel aliases 2021-07-20 23:19:46 +02:00
ItsDrike 93bde27829
Remove pacman aliases 2021-07-20 23:19:17 +02:00
ItsDrike 8566d2cfc9
Use .zshenv to define env vars, not .zprofile 2021-07-20 23:18:50 +02:00
ItsDrike 1005ca8356
Update kybinds 2021-07-20 23:11:18 +02:00
ItsDrike d448a66cef
Use ternary conditionals 2021-07-20 23:10:46 +02:00
ItsDrike cd08fbd55d
Accept prepended zeroes for colors 2021-07-20 19:58:46 +02:00
ItsDrike a3ed7ff347
Add PS1 anonymize function 2021-07-20 19:52:58 +02:00
ItsDrike 7c37651ee4
Add root account usage notice 2021-07-20 01:59:39 +02:00