mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 12:49:26 +01:00
{bash,zsh}rc: workaround tmux/nvim crash
This commit is contained in:
parent
73572f1294
commit
cb377b5264
12
rc/bashrc
12
rc/bashrc
@ -301,8 +301,8 @@ PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS;
|
|||||||
|
|
||||||
##### Aliases RJ706I #####
|
##### Aliases RJ706I #####
|
||||||
|
|
||||||
# To get sudo work with aliases.
|
# To get sudo work with aliases. And workaround nvim/tmux crash.
|
||||||
alias sudo="\sudo "
|
alias sudo="\sudo --preserve-env=tmux"
|
||||||
|
|
||||||
# Moving between directories:
|
# Moving between directories:
|
||||||
alias ..="cd .."
|
alias ..="cd .."
|
||||||
@ -442,9 +442,11 @@ alias ex-tarbz2="tar xfvj "
|
|||||||
# To have less handle ls colours
|
# To have less handle ls colours
|
||||||
alias less="less -R "
|
alias less="less -R "
|
||||||
|
|
||||||
# "su -" with/without sudo
|
# "su -" with/without sudo. Conflicts with SailfishOS, to learn to use sui
|
||||||
alias ssu="sudo su -"
|
# instead.
|
||||||
alias suu="su -"
|
alias ssu="sudo -i"
|
||||||
|
alias sui="sudo -i"
|
||||||
|
#alias suu="su -"
|
||||||
|
|
||||||
# systemd runlevels/targets
|
# systemd runlevels/targets
|
||||||
alias currenttargets="systemctl list-units --type=target"
|
alias currenttargets="systemctl list-units --type=target"
|
||||||
|
12
rc/zshrc
12
rc/zshrc
@ -267,8 +267,8 @@ PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS;
|
|||||||
|
|
||||||
##### Aliases RJ706I #####
|
##### Aliases RJ706I #####
|
||||||
|
|
||||||
# To get sudo work with aliases.
|
# To get sudo work with aliases. And workaround nvim/tmux crash.
|
||||||
alias sudo="\sudo "
|
alias sudo="\sudo --preserve-env=tmux"
|
||||||
|
|
||||||
# Moving between directories:
|
# Moving between directories:
|
||||||
alias ..="cd .."
|
alias ..="cd .."
|
||||||
@ -436,9 +436,11 @@ alias history="history -i "
|
|||||||
# To have less handle ls colours
|
# To have less handle ls colours
|
||||||
alias less="less -R "
|
alias less="less -R "
|
||||||
|
|
||||||
# "su -" with/without sudo
|
# "su -" with/without sudo. Conflicts with SailfishOS, to learn to use sui
|
||||||
alias ssu="sudo su -"
|
# instead.
|
||||||
alias suu="su -"
|
alias ssu="sudo -i"
|
||||||
|
alias sui="sudo -i"
|
||||||
|
#alias suu="su -"
|
||||||
|
|
||||||
# Who command which I use with Conky
|
# Who command which I use with Conky
|
||||||
alias cwho="who -H -w -u"
|
alias cwho="who -H -w -u"
|
||||||
|
Loading…
Reference in New Issue
Block a user