alias sudo='doas' yerine ln -s /usr/bin/doas /usr/bin/sudo yapabilirsiniz, böylelikle sudoyu kullanan bazı scriptler de çalışır.

@Ali998 cehaletimi maruz görün, lakin bunlara kendi bilgisayarımda nasıl erişeceğimi bir türlü bulamadım.

Bana garip gelen sanal makinemde persist çalışıyordu, ana makinemde çalışmıyor. O da Debian'dı. Sanırsam sudo'ya geri döneceğim, birkaç sıkıntı daha var.

"Haydaa!" gibi düşünün. Dümdüz "Hata" yazmak yerine biraz mizahlı yazdım.

Benim şu anda bu şekilde. Bash:Panoya kopyala # Kreato's. bashrc export LANG=en_US. UTF-8 export EDITOR=nvim alias nano="nvim" alias cls="clear" alias poweroff="doas poweroff" alias shutdown="doas poweroff" alias reboot="doas reboot" alias stmake="rm -rf config. h patches. h && doas make clean install && killall st" alias genupdate="doas emerge --ask --verbose --update --deep --changed-use @world" alias dwmake="rm -rf config. h patches. h && doas make clean install && killall dwm" alias clr="clear" alias sl="ls" # /sound:sys:alsa alias xconnect="xfreerdp /v:192.168.122.121:3389 /sound:sys:pulse /mic:sys:pulse /w:1920 /h:1080 /bpp:32 +clipboard +fonts /gdi:hw /rfx /rfx-mode:video +menu-anims +window-drag" alias eworld="doas emerge -avuDN world" alias power='upower -i $ | grep -E "state|to\ full|percentage"' eval "$ " if ; then export PATH="$PATH:$HOME/. cargo/bin" fi # Test for an interactive shell. There is no need to set anything # past this point for scp and rcp, and it's important to refrain from # outputting anything in those cases. if ] ; then # Shell is non-interactive. Be done now! return fi

Benimki bu şekilde: Bash:Panoya kopyala # . bashrc # Source global definitions if ; then. /etc/bashrc fi # User specific environment if! ] then PATH="$HOME/. local/bin:$HOME/bin:$PATH" fi export PATH # Uncomment the following line if you don't like systemctl's auto-paging feature: # export SYSTEMD_PAGER= # User specific aliases and functions if ; then for rc in /. bashrc. d/ ; do if ; then. "$rc" fi done fi unset rc # Kendi özelleştirmelerim: echo -e "Merhaba \033[1m$USER!\033[0m" PS1="\033[1;94m \$\033[0m " alias py="python3" alias metin="vi" alias merhaba="echo 'Merhaba $USER!'" alias dosyalar="nautilus." alias linux-surumu="uname -r" alias technopat="firefox https://technopat.net/sosyal/bolum/gnu-linux.13" # Bu 'espeak-ng' paketini gerektirir! alias soyle="espeak-ng -v TR" alias guncelle="pkexec dnf update" alias kur="pkexec dnf install" alias kaldır="pkexec dnf remove" alias temizle="clear" alias sudo="doas" command_not_found_handle

Ben küçük bir kısmını değiştirdim, sadece o kısmı atacağım. export EDITOR='vim' # Command Aliases alias gc='git clone' alias sudo='doas' alias ls='ls -F -h --color=always -v --author --time-style=long-iso' alias ll='ls -l' alias l='ls -l -a' alias sl='ls' alias v='vim' alias update='doas apt update' alias upgrade='doas apt upgrade' alias jar='java -jar'

# Enable Powerlevel10k instant prompt. Should stay close to the top of /. zshrc. # Initialization code that may require console input must go above this block; everything else may go below. if ]; then source "$ /p10k-instant-prompt-$ . zsh" fi # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. export ZSH="/home/berke/. oh-my-zsh" # Set name of the theme to load if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes ZSH_THEME="powerlevel10k/powerlevel10k" # Set list of themes to pick from when loading at random # Setting this variable when ZSH_THEME=random will cause zsh to load # a theme from this variable instead of looking in $ZSH/themes/ # If set to an empty array, this variable will have no effect. # ZSH_THEME_RANDOM_CANDIDATES= # Uncomment the following line to use case-sensitive completion. # CASE_SENSITIVE="true" # Uncomment the following line to use hyphen-insensitive completion. # Case-sensitive completion must be off. _ and - will be interchangeable. # HYPHEN_INSENSITIVE="true" # Uncomment the following line to disable bi-weekly auto-update checks. # DISABLE_AUTO_UPDATE="true" # Uncomment the following line to automatically update without prompting. # DISABLE_UPDATE_PROMPT="true" # Uncomment the following line to change how often to auto-update . # export UPDATE_ZSH_DAYS=13 # Uncomment the following line if pasting URLs and other text is messed up. # DISABLE_MAGIC_FUNCTIONS="true" # Uncomment the following line to disable colors in ls. # DISABLE_LS_COLORS="true" # Uncomment the following line to disable auto-setting terminal title. # DISABLE_AUTO_TITLE="true" # Uncomment the following line to enable command auto-correction. # ENABLE_CORRECTION="true" # Uncomment the following line to display red dots whilst waiting for completion. # Caution: this setting can cause issues with multiline prompts (zsh 5.7.1 and newer seem to work) # See https://github.com/ohmyzsh/ohmyzsh/issues/5765 # COMPLETION_WAITING_DOTS="true" # Uncomment the following line if you want to disable marking untracked files # under VCS as dirty. This makes repository status check for large repositories # much, much faster. # DISABLE_UNTRACKED_FILES_DIRTY="true" # Uncomment the following line if you want to change the command execution time # stamp shown in the history command output. # You can set one of the optional three formats: # "mm/dd/yyyy"|"dd. mm. yyyy"|"yyyy-mm-dd" # or set a custom format using the strftime function format specifications, # see 'man strftime' for details. # HIST_STAMPS="mm/dd/yyyy" # Would you like to use another custom folder than $ZSH/custom? # ZSH_CUSTOM=/path/to/new-custom-folder # Which plugins would you like to load? # Standard plugins can be found in $ZSH/plugins/ # Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Example format: plugins= # Add wisely, as too many plugins slow down shell startup. plugins= source $ZSH/oh-my-zsh. sh # User configuration # export MANPATH="/usr/local/man:$MANPATH" # You may need to manually set your language environment # export LANG=en_US. UTF-8 # Preferred editor for local and remote sessions # if ]; then # export EDITOR='vim' # else # export EDITOR='mvim' # fi # Compilation flags # export ARCHFLAGS="-arch x86_64" # Set personal aliases, overriding those provided by oh-my-zsh libs, # plugins, and themes. Aliases can be placed here, though oh-my-zsh # users are encouraged to define aliases within the ZSH_CUSTOM folder. # For a full list of active aliases, run `alias`. # # Example aliases # alias zshconfig="mate /. zshrc" # alias ohmyzsh="mate /. oh-my-zsh" # To customize prompt, run `p10k configure` or edit /. p10k. zsh. ] || source /. p10k. zsh

Kod:Panoya kopyala # # /. bashrc # # If not running interactively, don't do anything ] && return alias ls='ls --color=auto' PS1=' \$ ' #arch alias evb='sudo systemctl enable --now vboxservice. service'

Teşekkürler, dediği flag kullanınca çözülüyor. Ancak yine de grafiksel uygulamaları açamıyorum, sudo'daki -E opsiyonunu kullanmanın yolu olmayınca kullanmayacağım galiba. OpenBSD doas sayfasında göremedim çünkü öyle bir şey.

Oruç bozan terminal, İslam dünyasında bir ilk. Adını şey koyalım, Oruçbozan999. Benim dosya da her terminal açtığımda bir alıntı gösteriyordu. Ama çalışmıyor sanırım.

bana_bir_sandivic_yap

Doas. confda sorun göremedim, büyük ihtimal Debian paketi persist ile derlenmediğinden oluyordur.

# /etc/skel/. bashrc # # This file is sourced by all interactive bash shells on startup, # including some apparently interactive shells such as scp and rcp # that can't tolerate any output. So make sure this doesn't display # anything or bad things will happen! alias cls="clear" #alias nano="nvim" alias stmake="rm -rf config. h patches. h && doas make clean install && killall st" alias dwmake="rm -rf config. h patches. h && doas make clean install && killall dwm" alias micro="nvim" alias clr="clear" alias sus="echo sus" alias amogus="echo amogus" alias eworld="doas emerge -avuDN world" alias power='upower -i $ | grep -E "state|to\ full|percentage"' eval "$ " #. $HOME/. asdf/asdf. sh # Test for an interactive shell. There is no need to set anything # past this point for scp and rcp, and it's important to refrain from # outputting anything in those cases. if ] ; then # Shell is non-interactive. Be done now! return fi # Put your fun stuff here.

Açıklayamam hocam, şaka olsun diye yapmıştım

Bash:Panoya kopyala # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. export ZSH="/home/vanhox/. oh-my-zsh" # Set name of the theme to load if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes ZSH_THEME="bira" # Set list of themes to pick from when loading at random # Setting this variable when ZSH_THEME=random will cause zsh to load # a theme from this variable instead of looking in $ZSH/themes/ # If set to an empty array, this variable will have no effect. # ZSH_THEME_RANDOM_CANDIDATES= # Uncomment the following line to use case-sensitive completion. # CASE_SENSITIVE="true" # Uncomment the following line to use hyphen-insensitive completion. # Case-sensitive completion must be off. _ and - will be interchangeable. # HYPHEN_INSENSITIVE="true" # Uncomment the following line to disable bi-weekly auto-update checks. # DISABLE_AUTO_UPDATE="true" # Uncomment the following line to automatically update without prompting. # DISABLE_UPDATE_PROMPT="true" # Uncomment the following line to change how often to auto-update . # export UPDATE_ZSH_DAYS=13 # Uncomment the following line if pasting URLs and other text is messed up. # DISABLE_MAGIC_FUNCTIONS="true" # Uncomment the following line to disable colors in ls. # DISABLE_LS_COLORS="true" # Uncomment the following line to disable auto-setting terminal title. # DISABLE_AUTO_TITLE="true" # Uncomment the following line to enable command auto-correction. # ENABLE_CORRECTION="true" # Uncomment the following line to display red dots whilst waiting for completion. # Caution: this setting can cause issues with multiline prompts (zsh 5.7.1 and newer seem to work) # See https://github.com/ohmyzsh/ohmyzsh/issues/5765 # COMPLETION_WAITING_DOTS="true" # Uncomment the following line if you want to disable marking untracked files # under VCS as dirty. This makes repository status check for large repositories # much, much faster. # DISABLE_UNTRACKED_FILES_DIRTY="true" # Uncomment the following line if you want to change the command execution time # stamp shown in the history command output. # You can set one of the optional three formats: # "mm/dd/yyyy"|"dd. mm. yyyy"|"yyyy-mm-dd" # or set a custom format using the strftime function format specifications, # see 'man strftime' for details. # HIST_STAMPS="mm/dd/yyyy" # Would you like to use another custom folder than $ZSH/custom? # ZSH_CUSTOM=/path/to/new-custom-folder # Which plugins would you like to load? # Standard plugins can be found in $ZSH/plugins/ # Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Example format: plugins= # Add wisely, as too many plugins slow down shell startup. plugins= source $ZSH/oh-my-zsh. sh # User configuration # export MANPATH="/usr/local/man:$MANPATH" # You may need to manually set your language environment # export LANG=en_US. UTF-8 # Preferred editor for local and remote sessions # if ]; then # export EDITOR='vim' # else # export EDITOR='mvim' # fi # Compilation flags # export ARCHFLAGS="-arch x86_64" # Set personal aliases, overriding those provided by oh-my-zsh libs, # plugins, and themes. Aliases can be placed here, though oh-my-zsh # users are encouraged to define aliases within the ZSH_CUSTOM folder. # For a full list of active aliases, run `alias`. # # Example aliases # alias zshconfig="mate /. zshrc" # alias ohmyzsh="mate /. oh-my-zsh"

97. satır ve yorumu farklı bende de. Kod:Panoya kopyala # /. bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files # for examples # If not running interactively, don't do anything case $- in i ) ;; ) return;; esac # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth # append to the history file, don't overwrite it shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000 # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # If set, the pattern " " used in a pathname expansion context will # match all files and zero or more directories and subdirectories. #shopt -s globstar # make less more friendly for non-text input files, see lesspipe(1) && eval "$ " # set variable identifying the chroot you work in if && ; then debian_chroot=$ fi # set a fancy prompt case "$TERM" in xterm-color| -256color) color_prompt=yes;; esac # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt #force_color_prompt=yes if ; then if && tput setaf 1 >&/dev/null; then # We have color support; assume it's compliant with Ecma-48 # (ISO/IEC-6429). color_prompt=yes else color_prompt= fi fi if ; then PS1='$ \[\033 \u@\h\[\033 :\[\033 \w\[\033 \$ ' else PS1='$ \u@\h:\w\$ ' fi unset color_prompt force_color_prompt # If this is an xterm set the title to user@host:dir case "$TERM" in xterm |rxvt ) PS1="\ 0;$ \u@\h: \w\a\]$PS1" ;; ) ;; esac # enable color support of ls and also add handy aliases if ; then test -r /. dircolors && eval "$ " || eval "$ " alias ls='ls --color=auto' #alias dir='dir --color=auto' #alias vdir='vdir --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi # colored GCC warnings and errors #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # some more ls aliases alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' # Add an "alert" alias for long running commands. Use like so: # sleep 10; alert alias alert='notify-send --urgency=low -i "$( && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s \+\s //;s/ \s alert$//'\'')"' # Alias definitions. # You may want to put all your additions into a separate file like # /. bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package. if ; then. /. bash_aliases fi # enable programmable completion features . if! shopt -oq posix; then if ; then. /usr/share/bash-completion/bash_completion elif ; then. /etc/bash_completion fi fi

Terminalde mi çalışacak?

@Ali998 teşekkür ederim buldum. Şöyleymiş. # /. bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files # for examples # If not running interactively, don't do anything case $- in i ) ;; ) return;; esac # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth # append to the history file, don't overwrite it shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000 # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # If set, the pattern " " used in a pathname expansion context will # match all files and zero or more directories and subdirectories. #shopt -s globstar # make less more friendly for non-text input files, see lesspipe(1) # && eval "$ " # set variable identifying the chroot you work in if && ; then debian_chroot=$ fi # set a fancy prompt case "$TERM" in xterm-color| -256color) color_prompt=yes;; esac # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt force_color_prompt=yes if ; then if && tput setaf 1 >&/dev/null; then # We have color support; assume it's compliant with Ecma-48 # (ISO/IEC-6429). color_prompt=yes else color_prompt= fi fi if ; then PS1='$ \[\033 \u@\h\[\033 :\[\033 \w \$\[\033 ' else PS1='$ \u@\h:\w\$ ' fi unset color_prompt force_color_prompt # If this is an xterm set the title to user@host:dir case "$TERM" in xterm |rxvt ) PS1="\ 0;$ \u@\h: \w\a\]$PS1" ;; ) ;; esac # enable color support of ls and also add handy aliases if ; then test -r /. dircolors && eval "$ " || eval "$ " alias ls='ls --color=auto' #alias dir='dir --color=auto' #alias vdir='vdir --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi # colored GCC warnings and errors #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # some more ls aliases #alias ll='ls -l' #alias la='ls -A' #alias l='ls -CF' # Alias definitions. # You may want to put all your additions into a separate file like # /. bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package. if ; then. /. bash_aliases fi # enable programmable completion features . if! shopt -oq posix; then if ; then. /usr/share/bash-completion/bash_completion elif ; then. /etc/bash_completion fi fi

Evet. Yakın zamanda geçtim, bayağı beğendim. Ve evet DWM + ST kullanıyorum.

. bashrc dosyası bir sürü hata verdiğinden dolayı sandviç resmini ayrı olarak kaydettim. # /. bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files # for examples # If not running interactively, don't do anything case $- in i ) ;; ) return;; esac # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth # append to the history file, don't overwrite it shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000 # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # If set, the pattern " " used in a pathname expansion context will # match all files and zero or more directories and subdirectories. #shopt -s globstar # make less more friendly for non-text input files, see lesspipe(1) # && eval "$ " # set variable identifying the chroot you work in if && ; then debian_chroot=$ fi # set a fancy prompt case "$TERM" in xterm-color| -256color) color_prompt=yes;; esac # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt #force_color_prompt=yes if ; then if && tput setaf 1 >&/dev/null; then # We have color support; assume it's compliant with Ecma-48 # (ISO/IEC-6429). color_prompt=yes else color_prompt= fi fi if ; then PS1='$ \[\033 \u@\h\[\033 :\[\033 \w\[\033 \$ ' else PS1='$ \u@\h:\w\$ ' fi unset color_prompt force_color_prompt # If this is an xterm set the title to user@host:dir case "$TERM" in xterm |rxvt ) PS1="\ 0;$ \u@\h: \w\a\]$PS1" ;; ) ;; esac # enable color support of ls and also add handy aliases if ; then test -r /. dircolors && eval "$ " || eval "$ " alias ls='ls --color=auto' #alias dir='dir --color=auto' #alias vdir='vdir --color=auto' #alias grep='grep --color=auto' #alias fgrep='fgrep --color=auto' #alias egrep='egrep --color=auto' fi # colored GCC warnings and errors #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # some more ls aliases alias ll='ls -l' alias la='ls -A' alias l='ls -CF' # Alias definitions. # You may want to put all your additions into a separate file like # /. bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package. if ; then. /. bash_aliases fi # enable programmable completion features . if! shopt -oq posix; then if ; then. /usr/share/bash-completion/bash_completion elif ; then. /etc/bash_completion fi fi command_not_found_handle bana_bir_sandivic_yap _. . _ _.- -. _ _.- -. _ _.- . _ _.- \ .- _.; :-. _ _.- ./ `-. _ -. _ _.. .- _.- / -. _ -. _ / . ..-- . _ \ .. . \ / .( /`--...-- / _/nad /\ /-. _ \_ ( ./_..- ... ..- ./ `-. _ -. _ \ .- _.. .- _.- -. _ -. _ ' / . ..-- -. _\. _.- _/ \`--...-- _.- `--...--

Hangi distroyu kullanıyorsunuz?

Sadece bunu kendi. bashrcne eklemeyi dene. Böyle de çalıştırabilirsin.

Debian Unstable

Küçük bir araştırma yapıyorum, atarsanız sevinirim. ] && return shopt -s autocd export PS1="\ \ [\ \u\ @\ \h \ \W\ ]\ \\$ \ " && source "$HOME/aliasrc" #aliasrc dosyasıda şu: alias \ cp="cp -iv" \ ls="exa -lai"\ mv="mv -iv" \ rm="rm -v" \ mkd="mkdir -pv" \ yt="youtube-dl --add-metadata -i" \ ffmpeg="ffmpeg -hide_banner" \ ka="killall" \ g="git" \ trem="transmission-remote" \ sd="systemctl poweroff" \ v="vim" \ smci="sudo make clean install" \ netwp="systemctl restart NetworkManager" \ p="sudo pacman -S" Son düzenleyen: Moderatör: 5 Nisan 2021

Shellrc dosyaları shell açıldığında çalışan şeylerdir. Mesela benimki Bash , bash'e yapıştırsanız bir oturum boyunca benim Bash'ime sahip olursunuz.

/. bashrc konumunda olmalılar.

Hoopbala?

Hocam Surf mü kullanıyorsunuz? Safariyi gördüm WebKit2 tabanlı olduğu kesin de DWM+ST kullanıyorsanız bu da Surf'dür diye düşündüm.

Bunu buldum hocam, bir bakın isterseniz. Daha 6.8.1-3 çıkmamış, ondan persist özelliği yok. Kendiniz derleyebilirsiniz.

Hiç ayarlamadıysak boş mu olur? Konumu nerededir?

# # /. bashrc # # If not running interactively, don't do anything ] && return alias ls='ls --color=auto' PS1=' \$ ' Hiç havalı değil

Bash. rc yok fakat Alias'ları kaydetmiştim alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias grep='grep --color=auto' alias l='ls -CF' alias la='ls -A' alias ll='ls -alF' alias ls='ls --color=auto'

Teşekkürler, ayrıca bir şey soracaktım. Ben doas. conf'da permit persist yaptığım halde her seferinde şifre soruyor, bunu nasıl düzeltebilirim? doas. conf şu şekilde: permit persist ensar as root

Ben de bir Gentoo meselesini halledeyim, birlikte öğreniriz hocam bash özelleştirmeyi.