Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /etc/fish/config.fish: DO NOT EDIT -- this file has been generated automatically.
- # if we haven't sourced the general config, do it
- if not set -q __fish_nixos_general_config_sourced
- set fish_function_path /nix/store/x3yf11mb9iksz80gd5hq66d1l1k1n35k-fish-foreign-env-git-20170324/share/fish-foreign-env/functions $fish_function_path
- fenv source /etc/fish/foreign-env/shellInit > /dev/null
- set -e fish_function_path[1]
- # and leave a note so we don't source this config section again from
- # this very shell (children will source the general config anew)
- set -g __fish_nixos_general_config_sourced 1
- end
- # if we haven't sourced the login config, do it
- status --is-login; and not set -q __fish_nixos_login_config_sourced
- and begin
- set fish_function_path /nix/store/x3yf11mb9iksz80gd5hq66d1l1k1n35k-fish-foreign-env-git-20170324/share/fish-foreign-env/functions $fish_function_path
- fenv source /etc/fish/foreign-env/loginShellInit > /dev/null
- set -e fish_function_path[1]
- # and leave a note so we don't source this config section again from
- # this very shell (children will source the general config anew)
- set -g __fish_nixos_login_config_sourced 1
- end
- # if we haven't sourced the interactive config, do it
- status --is-interactive; and not set -q __fish_nixos_interactive_config_sourced
- and begin
- alias cat 'bat'
- alias catt 'bat --style plain'
- alias df 'df -h'
- alias du 'du -h'
- alias feh 'sxiv'
- alias free 'free -m'
- alias l 'ls -alh'
- alias ll 'exa -l --git'
- alias ls 'exa'
- alias psg 'ps au | grep'
- alias top 'htop'
- alias vi 'nvim'
- alias vim 'nvim'
- set fish_function_path /nix/store/x3yf11mb9iksz80gd5hq66d1l1k1n35k-fish-foreign-env-git-20170324/share/fish-foreign-env/functions $fish_function_path
- fenv source /etc/fish/foreign-env/interactiveShellInit > /dev/null
- set -e fish_function_path[1]
- any-nix-shell fish --info-right | source
- # add completions generated by NixOS to $fish_complete_path
- begin
- # joins with null byte to acommodate all characters in paths, then respectively gets all paths before (exclusive) / after (inclusive) the first one including "generated_completions",
- # splits by null byte, and then removes all empty lines produced by using 'string'
- set -l prev (string join0 $fish_complete_path | string match --regex "^.*?(?=\x00[^\x00]*generated_completions.*)" | string split0 | string match -er ".")
- set -l post (string join0 $fish_complete_path | string match --regex "[^\x00]*generated_completions.*" | string split0 | string match -er ".")
- set fish_complete_path $prev "/etc/fish/generated_completions" $post
- end
- # and leave a note so we don't source this config section again from
- # this very shell (children will source the general config anew,
- # allowing configuration changes in, e.g, aliases, to propagate)
- set -g __fish_nixos_interactive_config_sourced 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement