💾 Archived View for hajime.4teri.de › dotfiles › file › zshrc.gmi captured on 2021-12-03 at 14:04:38. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

zshrc - dotfiles - Collection of my dotfiles

Log

Files

Refs

---

zshrc (1699B)

---

1 # All non-zsh exports go in there!

2 source /home/zocki/.config/env/exports

3 export ZSH=/usr/share/oh-my-zsh/

4 # source /home/zocki/.config/scripts/tmux.sh

5

6 ZSH_THEME="wezm"

7

8 CASE_SENSITIVE="true"

9 DISABLE_AUTO_UPDATE="true"

10 COMPLETION_WAITING_DOTS="true"

11 HIST_STAMPS="yyyy-mm-dd"

12 plugins=(git)

13

14 source $ZSH/oh-my-zsh.sh

15 source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

16

17 setopt GLOB_DOTS

18 setopt COMPLETE_ALIASES

19

20 [[ $- != *i* ]] && return

21

22 export HISTCONTROL=ignoreboth:erasedups

23

24 # Remove rouge aliases

25 unalias ls

26 unalias la

27 unalias ll

28 unalias l

29 # unalias l.

30

31 # # ex = EXtractor for all kinds of archives

32 # # usage: ex <file>

33 ex ()

34 {

35 if [ -f $1 ] ; then

36 case $1 in

37 *.tar.bz2) tar xjf $1 ;;

38 *.tar.gz) tar xzf $1 ;;

39 *.bz2) bunzip2 $1 ;;

40 *.rar) unrar x $1 ;;

41 *.gz) gunzip $1 ;;

42 *.tar) tar xf $1 ;;

43 *.tbz2) tar xjf $1 ;;

44 *.tgz) tar xzf $1 ;;

45 *.zip) unzip $1 ;;

46 *.Z) uncompress $1;;

47 *.7z) 7z x $1 ;;

48 *.deb) ar x $1 ;;

49 *.tar.xz) tar xf $1 ;;

50 *.tar.zst) tar xf $1 ;;

51 *) echo "'$1' cannot be extracted via ex()" ;;

52 esac

53 else

54 echo "'$1' is not a valid file"

55 fi

56 }

57

58 remove_file()

59 {

60 if [ -e "$1" ]

61 then

62 rm "$1"

63 fi

64 }

65

66 # Removing useless files

67 remove_files()

68 {

69 remove_file /home/zocki/.lesshst

70 remove_file /home/zocki/.calc_history

71 remove_file /home/zocki/.wget-hsts

72 remove_file /home/zocki/.xsession-errors.old

73 remove_file /home/zocki/.sqlite_history

74 }

75

76 source /home/zocki/.config/env/aliases

77

78 autoload -Uz compinit

79 compinit

80

81 clear && neofetch

generated w/ stagit-gemini